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
1007
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
265
#define __efi64_argmap_handle_protocol(handle, protocol, interface) \
arch/x86/include/asm/efi.h
266
((handle), (protocol), efi64_zero_upper(interface))
arch/x86/include/asm/efi.h
268
#define __efi64_argmap_locate_protocol(protocol, reg, interface) \
arch/x86/include/asm/efi.h
269
((protocol), (reg), efi64_zero_upper(interface))
arch/x86/include/asm/efi.h
271
#define __efi64_argmap_locate_device_path(protocol, path, handle) \
arch/x86/include/asm/efi.h
272
((protocol), (path), efi64_zero_upper(handle))
arch/x86/include/asm/efi.h
278
#define __efi64_argmap_get_location(protocol, seg, bus, dev, func) \
arch/x86/include/asm/efi.h
279
((protocol), efi64_zero_upper(seg), efi64_zero_upper(bus), \
arch/x86/include/asm/efi.h
283
#define __efi64_argmap_load_file(protocol, path, policy, bufsize, buf) \
arch/x86/include/asm/efi.h
284
((protocol), (path), (policy), efi64_zero_upper(bufsize), (buf))
arch/x86/include/asm/efi.h
313
#define __efi64_argmap_get_memory_attributes(protocol, phys, size, flags) \
arch/x86/include/asm/efi.h
314
((protocol), __efi64_split(phys), __efi64_split(size), (flags))
arch/x86/include/asm/efi.h
316
#define __efi64_argmap_set_memory_attributes(protocol, phys, size, flags) \
arch/x86/include/asm/efi.h
317
((protocol), __efi64_split(phys), __efi64_split(size), __efi64_split(flags))
arch/x86/include/asm/efi.h
319
#define __efi64_argmap_clear_memory_attributes(protocol, phys, size, flags) \
arch/x86/include/asm/efi.h
320
((protocol), __efi64_split(phys), __efi64_split(size), __efi64_split(flags))
arch/x86/include/asm/efi.h
323
#define __efi64_argmap_get_next(protocol, smbioshandle, type, record, phandle) \
arch/x86/include/asm/efi.h
324
((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
505
static int alg_create(struct net *net, struct socket *sock, int protocol,
crypto/af_alg.c
513
if (protocol != 0)
drivers/acpi/sbshc.c
107
static int acpi_smbus_transaction(struct acpi_smb_hc *hc, u8 protocol,
drivers/acpi/sbshc.c
127
if (!(protocol & 0x01)) {
drivers/acpi/sbshc.c
133
smb_hc_write(hc, ACPI_SMB_PROTOCOL, protocol);
drivers/acpi/sbshc.c
139
if (ret || !(protocol & 0x01))
drivers/acpi/sbshc.c
141
switch (protocol) {
drivers/acpi/sbshc.c
164
int acpi_smbus_read(struct acpi_smb_hc *hc, u8 protocol, u8 address,
drivers/acpi/sbshc.c
167
return acpi_smbus_transaction(hc, protocol, address, command, data, 0);
drivers/acpi/sbshc.c
172
int acpi_smbus_write(struct acpi_smb_hc *hc, u8 protocol, u8 address,
drivers/acpi/sbshc.c
175
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
215
int is_atapi = ata_is_atapi(qc->tf.protocol);
drivers/ata/acard-ahci.c
265
if (qc->tf.protocol == ATA_PROT_PIO && qc->dma_dir == DMA_FROM_DEVICE &&
drivers/ata/libahci.c
1692
int is_atapi = ata_is_atapi(qc->tf.protocol);
drivers/ata/libahci.c
2060
if (ata_is_ncq(qc->tf.protocol))
drivers/ata/libahci.c
2093
if (qc->tf.protocol == ATA_PROT_PIO && qc->dma_dir == DMA_FROM_DEVICE &&
drivers/ata/libahci.c
2108
if (ata_is_ncq(qc->tf.protocol)) {
drivers/ata/libahci.c
2154
if (qc && ata_is_ncq(qc->tf.protocol)) {
drivers/ata/libahci.c
2176
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
1592
if (tf->protocol == ATAPI_PROT_DMA && (dev->flags & ATA_DFLAG_DMADIR) &&
drivers/ata/libata-core.c
1809
tf.protocol = ATA_PROT_PIO;
drivers/ata/libata-core.c
1972
tf->protocol = ATA_PROT_NODATA;
drivers/ata/libata-core.c
1999
tf.protocol = ATA_PROT_NODATA;
drivers/ata/libata-core.c
2141
tf.protocol = ATA_PROT_DMA;
drivers/ata/libata-core.c
2145
tf.protocol = ATA_PROT_PIO;
drivers/ata/libata-core.c
4647
tf.protocol = ATA_PROT_NODATA;
drivers/ata/libata-core.c
4690
tf.protocol = ATA_PROT_NODATA;
drivers/ata/libata-core.c
4729
tf.protocol = ATA_PROT_NODATA;
drivers/ata/libata-core.c
4793
if (ata_is_ncq(qc->tf.protocol)) {
drivers/ata/libata-core.c
4942
if (ata_is_ncq(qc->tf.protocol)) {
drivers/ata/libata-core.c
4988
if (!ata_is_data(qc->tf.protocol))
drivers/ata/libata-core.c
4991
if ((dev->mwdma_mask || dev->udma_mask) && ata_is_pio(qc->tf.protocol))
drivers/ata/libata-core.c
5152
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
1430
tf.protocol = ATAPI_PROT_NODATA;
drivers/ata/libata-eh.c
1509
tf.protocol = ATA_PROT_NODATA;
drivers/ata/libata-eh.c
1576
tf.protocol = ATAPI_PROT_DMA;
drivers/ata/libata-eh.c
1579
tf.protocol = ATAPI_PROT_PIO;
drivers/ata/libata-eh.c
2692
switch (qc->tf.protocol) {
drivers/ata/libata-eh.c
2725
if (ata_is_atapi(qc->tf.protocol)) {
drivers/ata/libata-eh.c
3290
tf.protocol = ATA_PROT_NODATA;
drivers/ata/libata-eh.c
3587
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
1314
tf->protocol = ATA_PROT_NODATA;
drivers/ata/libata-scsi.c
1411
tf->protocol = ATA_PROT_NODATA;
drivers/ata/libata-scsi.c
1808
if (!ata_is_ncq(qc->tf.protocol)) {
drivers/ata/libata-scsi.c
3005
qc->tf.protocol = ATAPI_PROT_NODATA;
drivers/ata/libata-scsi.c
3007
qc->tf.protocol = ATAPI_PROT_PIO;
drivers/ata/libata-scsi.c
3010
qc->tf.protocol = ATAPI_PROT_DMA;
drivers/ata/libata-scsi.c
3168
tf->protocol = ata_scsi_map_proto(cdb[1 + cdb_offset]);
drivers/ata/libata-scsi.c
3169
if (tf->protocol == ATA_PROT_UNKNOWN) {
drivers/ata/libata-scsi.c
3184
if (ata_is_ncq(tf->protocol))
drivers/ata/libata-scsi.c
3185
tf->protocol = ATA_PROT_NCQ_NODATA;
drivers/ata/libata-scsi.c
3265
if (ata_is_ncq(tf->protocol))
drivers/ata/libata-scsi.c
3278
if (tf->protocol != ATA_PROT_PIO || tf->nsect != 1) {
drivers/ata/libata-scsi.c
3344
if (tf->protocol == ATA_PROT_DMA && !ata_dma_enabled(dev)) {
drivers/ata/libata-scsi.c
3350
if (ata_is_ncq(tf->protocol) && !ata_ncq_enabled(dev)) {
drivers/ata/libata-scsi.c
3542
tf->protocol = ATA_PROT_NCQ;
drivers/ata/libata-scsi.c
3551
tf->protocol = ATA_PROT_DMA;
drivers/ata/libata-scsi.c
3791
tf->protocol = ATA_PROT_NCQ;
drivers/ata/libata-scsi.c
3801
tf->protocol = ATA_PROT_DMA;
drivers/ata/libata-scsi.c
3880
tf->protocol = ATA_PROT_NCQ_NODATA;
drivers/ata/libata-scsi.c
3886
tf->protocol = ATA_PROT_NODATA;
drivers/ata/libata-scsi.c
3958
tf->protocol = ATA_PROT_NODATA;
drivers/ata/libata-scsi.c
4055
tf->protocol = ATA_PROT_NODATA;
drivers/ata/libata-scsi.c
4311
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
2646
if (!ata_is_dma(qc->tf.protocol))
drivers/ata/libata-sff.c
2653
switch (qc->tf.protocol) {
drivers/ata/libata-sff.c
2709
if (ap->hsm_task_state == HSM_ST_LAST && ata_is_dma(qc->tf.protocol)) {
drivers/ata/libata-sff.c
2732
if (unlikely(qc->err_mask) && ata_is_dma(qc->tf.protocol))
drivers/ata/libata-sff.c
2784
if (qc && ata_is_dma(qc->tf.protocol)) {
drivers/ata/libata-sff.c
2832
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
695
if (!ata_is_dma(qc->tf.protocol))
drivers/ata/pata_arasan_cf.c
704
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
637
char protocol[8] = "auto";
drivers/ata/pata_parport/pata_parport.c
646
port, protocol, &mode, &unit, &delay) < 1)
drivers/ata/pata_parport/pata_parport.c
657
drv = driver_find(protocol, &pata_parport_bus_type);
drivers/ata/pata_parport/pata_parport.c
659
if (strcmp(protocol, "auto")) {
drivers/ata/pata_parport/pata_parport.c
660
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
303
if (qc->tf.protocol != ATA_PROT_DMA)
drivers/ata/pdc_adma.c
369
switch (qc->tf.protocol) {
drivers/ata/sata_dwc_460ex.c
1003
if (!ata_is_ncq(qc->tf.protocol))
drivers/ata/sata_dwc_460ex.c
1016
if (!ata_is_ncq(qc->tf.protocol))
drivers/ata/sata_dwc_460ex.c
1019
if (ata_is_dma(qc->tf.protocol)) {
drivers/ata/sata_dwc_460ex.c
1027
if (ata_is_ncq(qc->tf.protocol)) {
drivers/ata/sata_dwc_460ex.c
264
static const char *get_prot_descript(u8 protocol)
drivers/ata/sata_dwc_460ex.c
266
switch (protocol) {
drivers/ata/sata_dwc_460ex.c
555
__func__, get_prot_descript(qc->tf.protocol));
drivers/ata/sata_dwc_460ex.c
557
if (ata_is_dma(qc->tf.protocol)) {
drivers/ata/sata_dwc_460ex.c
575
} else if (ata_is_pio(qc->tf.protocol)) {
drivers/ata/sata_dwc_460ex.c
645
get_prot_descript(qc->tf.protocol));
drivers/ata/sata_dwc_460ex.c
646
if (ata_is_dma(qc->tf.protocol)) {
drivers/ata/sata_dwc_460ex.c
724
if (ata_is_dma(qc->tf.protocol)) {
drivers/ata/sata_dwc_460ex.c
755
qc->tf.command, status, ap->print_id, qc->tf.protocol);
drivers/ata/sata_dwc_460ex.c
950
if (!ata_is_ncq(qc->tf.protocol))
drivers/ata/sata_fsl.c
1199
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
1342
(qc->tf.protocol == ATA_PROT_NODATA))
drivers/ata/sata_nv.c
1373
if (qc->tf.protocol == ATA_PROT_NCQ)
drivers/ata/sata_nv.c
1398
int curr_ncq = (qc->tf.protocol == ATA_PROT_NCQ);
drivers/ata/sata_nv.c
1403
if (unlikely(qc->tf.protocol == ATA_PROT_NCQ &&
drivers/ata/sata_nv.c
1952
if (qc->tf.protocol != ATA_PROT_NCQ) {
drivers/ata/sata_nv.c
2028
if (qc->tf.protocol != ATA_PROT_NCQ)
drivers/ata/sata_promise.c
1006
switch (qc->tf.protocol) {
drivers/ata/sata_promise.c
1027
WARN_ON(tf->protocol == ATA_PROT_DMA || tf->protocol == ATAPI_PROT_DMA);
drivers/ata/sata_promise.c
1034
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
887
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
468
if (ata_is_dma(qc->tf.protocol)) {
drivers/ata/sata_sil.c
495
if (unlikely(qc->err_mask) && ata_is_dma(qc->tf.protocol))
drivers/ata/sata_sil24.c
791
u8 prot = qc->tf.protocol;
drivers/ata/sata_sil24.c
843
if (!ata_is_atapi(qc->tf.protocol)) {
drivers/ata/sata_sil24.c
846
if (ata_is_data(qc->tf.protocol)) {
drivers/ata/sata_sil24.c
849
if (ata_is_ncq(qc->tf.protocol))
drivers/ata/sata_sil24.c
863
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
348
if ((tf->protocol == ATA_PROT_DMA) && (!(tf->flags & ATA_TFLAG_WRITE)))
drivers/ata/sata_sx4.c
350
else if (tf->protocol == ATA_PROT_NODATA)
drivers/ata/sata_sx4.c
360
if (tf->protocol == ATA_PROT_NODATA)
drivers/ata/sata_sx4.c
402
if ((tf->protocol == ATA_PROT_DMA) && (!(tf->flags & ATA_TFLAG_WRITE)))
drivers/ata/sata_sx4.c
509
switch (qc->tf.protocol) {
drivers/ata/sata_sx4.c
610
if (rw && qc->tf.protocol == ATA_PROT_DMA) {
drivers/ata/sata_sx4.c
635
switch (qc->tf.protocol) {
drivers/ata/sata_sx4.c
666
if ((qc->tf.protocol == ATA_PROT_DMA) && /* read */
drivers/ata/sata_sx4.c
692
} else if (qc->tf.protocol == ATA_PROT_DMA) { /* write */
drivers/ata/sata_sx4.c
720
} 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/atm/iphase.h
127
#define ATM_DESC(skb) (skb->protocol)
drivers/atm/iphase.h
128
#define IA_SKB_STATE(skb) (skb->protocol)
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
3455
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
3438
intf->wchannels[set].c[0].protocol
drivers/char/ipmi/ipmi_msghandler.c
3455
chans[ch].protocol = msg->msg.data[3] & 0x1f;
drivers/char/ipmi/ipmi_msghandler.c
3533
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
509
__be16 protocol;
drivers/firewire/net.c
527
protocol = eth->h_proto;
drivers/firewire/net.c
531
protocol = htons(ETH_P_802_3);
drivers/firewire/net.c
533
protocol = htons(ETH_P_802_2);
drivers/firewire/net.c
535
skb->protocol = protocol;
drivers/firewire/net.c
986
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
153
struct device *parent, int protocol,
drivers/firmware/arm_scmi/common.h
155
void scmi_device_destroy(struct device *parent, int protocol, const char *name);
drivers/firmware/efi/libstub/efi-stub-helper.c
260
void *protocol;
drivers/firmware/efi/libstub/efi-stub-helper.c
271
protocol = tcg2;
drivers/firmware/efi/libstub/efi-stub-helper.c
295
protocol = cc;
drivers/firmware/efi/libstub/efi-stub-helper.c
313
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
2327
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
1822
.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
917
u32 protocol;
drivers/i2c/busses/i2c-bcm-iproc.c
934
protocol = process_call ?
drivers/i2c/busses/i2c-bcm-iproc.c
937
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
538
u8 command, int protocol, union i2c_smbus_data *data)
drivers/i2c/i2c-core-smbus.c
547
command, protocol, data);
drivers/i2c/i2c-core-smbus.c
556
u8 command, int protocol, union i2c_smbus_data *data)
drivers/i2c/i2c-core-smbus.c
573
command, protocol, data);
drivers/i2c/i2c-core-smbus.c
575
command, protocol);
drivers/i2c/i2c-core-smbus.c
592
command, protocol, data);
drivers/i2c/i2c-core-smbus.c
609
command, protocol, data);
drivers/i2c/i2c-core-smbus.c
614
command, protocol, data, res);
drivers/i2c/i2c-core-smbus.c
616
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/hfi1/vnic_main.c
399
skb->protocol = eth_type_trans(skb, rxq->netdev);
drivers/infiniband/hw/irdma/cm.c
500
iph->protocol = IPPROTO_TCP;
drivers/infiniband/hw/mlx4/main.c
3337
.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
328
iph->protocol = proto;
drivers/infiniband/sw/rxe/rxe_net.c
416
if (skb->protocol == htons(ETH_P_IP))
drivers/infiniband/sw/rxe/rxe_net.c
418
else if (skb->protocol == htons(ETH_P_IPV6))
drivers/infiniband/sw/rxe/rxe_net.c
452
if (skb->protocol == htons(ETH_P_IP))
drivers/infiniband/sw/rxe/rxe_net.c
475
if (skb->protocol == htons(ETH_P_IP))
drivers/infiniband/sw/rxe/rxe_net.c
575
skb->protocol = htons(ETH_P_IP);
drivers/infiniband/sw/rxe/rxe_net.c
577
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
1007
if (skb->protocol == htons(ETH_P_IP)) {
drivers/infiniband/sw/rxe/rxe_resp.c
1127
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/opa_vnic/opa_vnic_encap.c
429
proto = ip_hdr(skb)->protocol;
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
1541
psmouse->protocol = selected_proto;
drivers/input/mouse/psmouse-base.c
1567
input_dev->id.product = psmouse->protocol->type;
drivers/input/mouse/psmouse-base.c
1628
if (!psmouse->protocol->smbus_companion) {
drivers/input/mouse/psmouse-base.c
1648
if (!psmouse->protocol->smbus_companion)
drivers/input/mouse/psmouse-base.c
165
switch (psmouse->protocol->type) {
drivers/input/mouse/psmouse-base.c
1712
if (psmouse->protocol->type != type)
drivers/input/mouse/psmouse-base.c
1720
if (!psmouse->protocol->smbus_companion) {
drivers/input/mouse/psmouse-base.c
1732
if (!psmouse->protocol->smbus_companion)
drivers/input/mouse/psmouse-base.c
1797
if (psmouse->protocol->smbus_companion &&
drivers/input/mouse/psmouse-base.c
1818
if (psmouse->protocol->smbus_companion &&
drivers/input/mouse/psmouse-base.c
1835
if (!psmouse->protocol->smbus_companion)
drivers/input/mouse/psmouse-base.c
1842
if (retval != -ENODEV && !psmouse->protocol->smbus_companion)
drivers/input/mouse/psmouse-base.c
1879
return sprintf(buf, "%s\n", psmouse->protocol->name);
drivers/input/mouse/psmouse-base.c
1895
if (psmouse->protocol == proto)
drivers/input/mouse/psmouse-base.c
1919
if (psmouse->protocol == proto) {
drivers/input/mouse/psmouse-base.c
1932
old_proto = psmouse->protocol;
drivers/input/mouse/psmouse-base.c
1951
if (psmouse->protocol->smbus_companion) {
drivers/input/mouse/psmouse-base.c
350
!psmouse->protocol->ignore_parity))) {
drivers/input/mouse/psmouse-base.c
397
(psmouse->protocol->type == PSMOUSE_HGPK &&
drivers/input/mouse/psmouse-base.c
81
PSMOUSE_DEFINE_ATTR(protocol, S_IWUSR | S_IRUGO,
drivers/input/mouse/psmouse-base.c
978
psmouse->protocol = &psmouse_protocols[0];
drivers/input/mouse/psmouse.h
96
const struct psmouse_protocol *protocol;
drivers/isdn/hardware/mISDN/avmfritz.c
337
modehdlc(struct bchannel *bch, int protocol)
drivers/isdn/hardware/mISDN/avmfritz.c
345
'@' + bch->nr, bch->state, protocol, bch->nr);
drivers/isdn/hardware/mISDN/avmfritz.c
349
switch (protocol) {
drivers/isdn/hardware/mISDN/avmfritz.c
364
bch->state = protocol;
drivers/isdn/hardware/mISDN/avmfritz.c
374
bch->state = protocol;
drivers/isdn/hardware/mISDN/avmfritz.c
384
pr_info("%s: protocol not known %x\n", fc->name, protocol);
drivers/isdn/hardware/mISDN/avmfritz.c
702
ret = modehdlc(bch, ch->protocol);
drivers/isdn/hardware/mISDN/avmfritz.c
853
ch->protocol = ISDN_P_NONE;
drivers/isdn/hardware/mISDN/avmfritz.c
902
if (rq->protocol == ISDN_P_NONE)
drivers/isdn/hardware/mISDN/avmfritz.c
907
bch->ch.protocol = rq->protocol;
drivers/isdn/hardware/mISDN/avmfritz.c
928
if (rq->protocol == ISDN_P_TE_S0)
drivers/isdn/hardware/mISDN/hfc_multi.h
50
u_int protocol; /* current protocol */
drivers/isdn/hardware/mISDN/hfcmulti.c
1641
if (dch->dev.D.protocol == ISDN_P_NT_S0)
drivers/isdn/hardware/mISDN/hfcmulti.c
1705
if (dch->dev.D.protocol == ISDN_P_NT_S0)
drivers/isdn/hardware/mISDN/hfcmulti.c
1752
if (dch->dev.D.protocol == ISDN_P_NT_S0)
drivers/isdn/hardware/mISDN/hfcmulti.c
1939
(hc->chan[ch].protocol == ISDN_P_B_RAW) &&
drivers/isdn/hardware/mISDN/hfcmulti.c
2175
(hc->chan[ch].protocol == ISDN_P_B_RAW) &&
drivers/isdn/hardware/mISDN/hfcmulti.c
2563
dch->dev.D.protocol == ISDN_P_TE_S0) {
drivers/isdn/hardware/mISDN/hfcmulti.c
2572
if (dch->dev.D.protocol == ISDN_P_NT_S0)
drivers/isdn/hardware/mISDN/hfcmulti.c
2828
mode_hfcmulti(struct hfc_multi *hc, int ch, int protocol, int slot_tx,
drivers/isdn/hardware/mISDN/hfcmulti.c
2845
__func__, hc->id, ch, protocol, oslot_tx, slot_tx,
drivers/isdn/hardware/mISDN/hfcmulti.c
2944
switch (protocol) {
drivers/isdn/hardware/mISDN/hfcmulti.c
3006
if (hc->chan[ch].protocol != protocol) {
drivers/isdn/hardware/mISDN/hfcmulti.c
3029
if (hc->chan[ch].protocol != protocol) {
drivers/isdn/hardware/mISDN/hfcmulti.c
3051
if (hc->chan[ch].protocol != protocol) {
drivers/isdn/hardware/mISDN/hfcmulti.c
3069
if (hc->chan[ch].protocol != protocol) {
drivers/isdn/hardware/mISDN/hfcmulti.c
3133
__func__, protocol);
drivers/isdn/hardware/mISDN/hfcmulti.c
3134
hc->chan[ch].protocol = ISDN_P_NONE;
drivers/isdn/hardware/mISDN/hfcmulti.c
3137
hc->chan[ch].protocol = protocol;
drivers/isdn/hardware/mISDN/hfcmulti.c
3152
mode_hfcmulti(hc, ch, hc->chan[ch].protocol, -1, 0, -1, 0);
drivers/isdn/hardware/mISDN/hfcmulti.c
3157
mode_hfcmulti(hc, ch, hc->chan[ch].protocol, slot_tx, bank_tx,
drivers/isdn/hardware/mISDN/hfcmulti.c
3172
mode_hfcmulti(hc, ch, hc->chan[ch].protocol, hc->chan[ch].slot_tx,
drivers/isdn/hardware/mISDN/hfcmulti.c
3326
if (dch->dev.D.protocol != ISDN_P_TE_S0) {
drivers/isdn/hardware/mISDN/hfcmulti.c
3360
if (dch->dev.D.protocol != ISDN_P_TE_S0) {
drivers/isdn/hardware/mISDN/hfcmulti.c
3462
ch->protocol,
drivers/isdn/hardware/mISDN/hfcmulti.c
3468
if (ch->protocol == ISDN_P_B_RAW && !hc->dtmf
drivers/isdn/hardware/mISDN/hfcmulti.c
3671
ch->protocol = ISDN_P_NONE;
drivers/isdn/hardware/mISDN/hfcmulti.c
3707
if (dch->dev.D.protocol == ISDN_P_TE_E1) {
drivers/isdn/hardware/mISDN/hfcmulti.c
3745
if (dch->dev.D.protocol == ISDN_P_TE_S0) {
drivers/isdn/hardware/mISDN/hfcmulti.c
3840
mode_hfcmulti(hc, dch->slot, dch->dev.D.protocol,
drivers/isdn/hardware/mISDN/hfcmulti.c
3881
if (dch->dev.D.protocol == ISDN_P_NT_E1) {
drivers/isdn/hardware/mISDN/hfcmulti.c
3947
mode_hfcmulti(hc, i, dch->dev.D.protocol, -1, 0, -1, 0);
drivers/isdn/hardware/mISDN/hfcmulti.c
3961
if (dch->dev.D.protocol == ISDN_P_NT_S0) {
drivers/isdn/hardware/mISDN/hfcmulti.c
3990
if ((dch->dev.D.protocol == ISDN_P_NT_S0) ||
drivers/isdn/hardware/mISDN/hfcmulti.c
4026
if (rq->protocol == ISDN_P_NONE)
drivers/isdn/hardware/mISDN/hfcmulti.c
4028
if ((dch->dev.D.protocol != ISDN_P_NONE) &&
drivers/isdn/hardware/mISDN/hfcmulti.c
4029
(dch->dev.D.protocol != rq->protocol)) {
drivers/isdn/hardware/mISDN/hfcmulti.c
4032
__func__, dch->dev.D.protocol, rq->protocol);
drivers/isdn/hardware/mISDN/hfcmulti.c
4034
if ((dch->dev.D.protocol == ISDN_P_TE_S0) &&
drivers/isdn/hardware/mISDN/hfcmulti.c
4035
(rq->protocol != ISDN_P_TE_S0))
drivers/isdn/hardware/mISDN/hfcmulti.c
4037
if (dch->dev.D.protocol != rq->protocol) {
drivers/isdn/hardware/mISDN/hfcmulti.c
4038
if (rq->protocol == ISDN_P_TE_S0) {
drivers/isdn/hardware/mISDN/hfcmulti.c
4043
dch->dev.D.protocol = rq->protocol;
drivers/isdn/hardware/mISDN/hfcmulti.c
4066
if (rq->protocol == ISDN_P_NONE)
drivers/isdn/hardware/mISDN/hfcmulti.c
4080
bch->ch.protocol = rq->protocol;
drivers/isdn/hardware/mISDN/hfcmulti.c
4158
switch (rq->protocol) {
drivers/isdn/hardware/mISDN/hfcmulti.c
4512
if (dch->dev.D.protocol == ISDN_P_TE_S0)
drivers/isdn/hardware/mISDN/hfcmulti.c
4906
if (dch->dev.D.protocol != ISDN_P_TE_S0) {
drivers/isdn/hardware/mISDN/hfcmulti.c
819
if (hc->chan[ch].protocol != ISDN_P_B_RAW)
drivers/isdn/hardware/mISDN/hfcmulti.c
852
if (hc->chan[ch].protocol != ISDN_P_B_RAW)
drivers/isdn/hardware/mISDN/hfcpci.c
1039
if (hc->hw.protocol == ISDN_P_NT_S0) {
drivers/isdn/hardware/mISDN/hfcpci.c
1181
if (hc->hw.protocol == ISDN_P_NT_S0) {
drivers/isdn/hardware/mISDN/hfcpci.c
1239
mode_hfcpci(struct bchannel *bch, int bc, int protocol)
drivers/isdn/hardware/mISDN/hfcpci.c
1248
bch->state, protocol, bch->nr, bc);
drivers/isdn/hardware/mISDN/hfcpci.c
1260
} else if (test_bit(HFC_CFG_PCM, &hc->cfg) && (protocol > ISDN_P_NONE))
drivers/isdn/hardware/mISDN/hfcpci.c
1268
if (protocol != ISDN_P_NONE) {
drivers/isdn/hardware/mISDN/hfcpci.c
1281
switch (protocol) {
drivers/isdn/hardware/mISDN/hfcpci.c
1317
bch->state = protocol;
drivers/isdn/hardware/mISDN/hfcpci.c
1352
bch->state = protocol;
drivers/isdn/hardware/mISDN/hfcpci.c
1381
printk(KERN_DEBUG "prot not known %x\n", protocol);
drivers/isdn/hardware/mISDN/hfcpci.c
1385
if ((protocol == ISDN_P_NONE) ||
drivers/isdn/hardware/mISDN/hfcpci.c
1386
(protocol == -1)) { /* init case */
drivers/isdn/hardware/mISDN/hfcpci.c
1432
set_hfcpci_rxtest(struct bchannel *bch, int protocol, int chan)
drivers/isdn/hardware/mISDN/hfcpci.c
1439
bch->state, protocol, bch->nr, chan);
drivers/isdn/hardware/mISDN/hfcpci.c
1446
switch (protocol) {
drivers/isdn/hardware/mISDN/hfcpci.c
1448
bch->state = protocol;
drivers/isdn/hardware/mISDN/hfcpci.c
1473
bch->state = protocol;
drivers/isdn/hardware/mISDN/hfcpci.c
1492
printk(KERN_DEBUG "prot not known %x\n", protocol);
drivers/isdn/hardware/mISDN/hfcpci.c
1556
ch->protocol = ISDN_P_NONE;
drivers/isdn/hardware/mISDN/hfcpci.c
1600
if (hc->hw.protocol == ISDN_P_NT_S0) {
drivers/isdn/hardware/mISDN/hfcpci.c
1621
if (hc->hw.protocol == ISDN_P_NT_S0) {
drivers/isdn/hardware/mISDN/hfcpci.c
1685
ret = mode_hfcpci(bch, bch->nr, ch->protocol);
drivers/isdn/hardware/mISDN/hfcpci.c
174
if (hc->hw.protocol == ISDN_P_NT_S0) {
drivers/isdn/hardware/mISDN/hfcpci.c
1888
if (rq->protocol == ISDN_P_NONE)
drivers/isdn/hardware/mISDN/hfcpci.c
1895
if (rq->protocol == ISDN_P_TE_S0) {
drivers/isdn/hardware/mISDN/hfcpci.c
1900
hc->hw.protocol = rq->protocol;
drivers/isdn/hardware/mISDN/hfcpci.c
1901
ch->protocol = rq->protocol;
drivers/isdn/hardware/mISDN/hfcpci.c
1906
if (rq->protocol != ch->protocol) {
drivers/isdn/hardware/mISDN/hfcpci.c
1907
if (hc->hw.protocol == ISDN_P_TE_S0)
drivers/isdn/hardware/mISDN/hfcpci.c
1909
if (rq->protocol == ISDN_P_TE_S0) {
drivers/isdn/hardware/mISDN/hfcpci.c
1914
hc->hw.protocol = rq->protocol;
drivers/isdn/hardware/mISDN/hfcpci.c
1915
ch->protocol = rq->protocol;
drivers/isdn/hardware/mISDN/hfcpci.c
1920
if (((ch->protocol == ISDN_P_NT_S0) && (hc->dch.state == 3)) ||
drivers/isdn/hardware/mISDN/hfcpci.c
1921
((ch->protocol == ISDN_P_TE_S0) && (hc->dch.state == 7))) {
drivers/isdn/hardware/mISDN/hfcpci.c
1938
if (rq->protocol == ISDN_P_NONE)
drivers/isdn/hardware/mISDN/hfcpci.c
1943
bch->ch.protocol = rq->protocol;
drivers/isdn/hardware/mISDN/hfcpci.c
1968
if ((rq->protocol == ISDN_P_TE_S0) ||
drivers/isdn/hardware/mISDN/hfcpci.c
1969
(rq->protocol == ISDN_P_NT_S0))
drivers/isdn/hardware/mISDN/hfcpci.c
2072
if (hc->hw.protocol == ISDN_P_TE_S0)
drivers/isdn/hardware/mISDN/hfcpci.c
98
unsigned char protocol;
drivers/isdn/hardware/mISDN/hfcsusb.c
1360
if ((fifon == HFCUSB_D_TX) && (hw->protocol == ISDN_P_NT_S0)
drivers/isdn/hardware/mISDN/hfcsusb.c
1529
(hw->protocol == ISDN_P_TE_S0) ? "TE" : "NT");
drivers/isdn/hardware/mISDN/hfcsusb.c
1531
if (hw->protocol == ISDN_P_TE_S0) {
drivers/isdn/hardware/mISDN/hfcsusb.c
1589
(hw->protocol == ISDN_P_NT_S0) ? 0x08 : 0x09);
drivers/isdn/hardware/mISDN/hfcsusb.c
1762
if (hw->protocol == ISDN_P_TE_S0)
drivers/isdn/hardware/mISDN/hfcsusb.c
1822
ch->protocol = ISDN_P_NONE;
drivers/isdn/hardware/mISDN/hfcsusb.c
222
ret = hfcsusb_setup_bch(bch, ch->protocol);
drivers/isdn/hardware/mISDN/hfcsusb.c
256
phi->dch.ch.protocol = hw->protocol;
drivers/isdn/hardware/mISDN/hfcsusb.c
261
phi->bch[i].protocol = hw->bch[i].ch.protocol;
drivers/isdn/hardware/mISDN/hfcsusb.c
303
(hw->protocol == ISDN_P_NT_S0) ? "NT" : "TE");
drivers/isdn/hardware/mISDN/hfcsusb.c
305
if (hw->protocol == ISDN_P_NT_S0) {
drivers/isdn/hardware/mISDN/hfcsusb.c
329
if (hw->protocol == ISDN_P_NT_S0) {
drivers/isdn/hardware/mISDN/hfcsusb.c
425
if (rq->protocol == ISDN_P_NONE)
drivers/isdn/hardware/mISDN/hfcsusb.c
444
hw->protocol = rq->protocol;
drivers/isdn/hardware/mISDN/hfcsusb.c
445
if (rq->protocol == ISDN_P_TE_S0) {
drivers/isdn/hardware/mISDN/hfcsusb.c
451
ch->protocol = rq->protocol;
drivers/isdn/hardware/mISDN/hfcsusb.c
454
if (rq->protocol != ch->protocol)
drivers/isdn/hardware/mISDN/hfcsusb.c
458
if (((ch->protocol == ISDN_P_NT_S0) && (hw->dch.state == 3)) ||
drivers/isdn/hardware/mISDN/hfcsusb.c
459
((ch->protocol == ISDN_P_TE_S0) && (hw->dch.state == 7)))
drivers/isdn/hardware/mISDN/hfcsusb.c
476
if (rq->protocol == ISDN_P_NONE)
drivers/isdn/hardware/mISDN/hfcsusb.c
48
static int hfcsusb_setup_bch(struct bchannel *bch, int protocol);
drivers/isdn/hardware/mISDN/hfcsusb.c
486
bch->ch.protocol = rq->protocol;
drivers/isdn/hardware/mISDN/hfcsusb.c
536
if ((rq->protocol == ISDN_P_TE_S0) ||
drivers/isdn/hardware/mISDN/hfcsusb.c
537
(rq->protocol == ISDN_P_NT_S0))
drivers/isdn/hardware/mISDN/hfcsusb.c
675
if (hw->protocol == ISDN_P_NT_S0)
drivers/isdn/hardware/mISDN/hfcsusb.c
677
else if (hw->protocol == ISDN_P_TE_S0)
drivers/isdn/hardware/mISDN/hfcsusb.c
685
hfcsusb_setup_bch(struct bchannel *bch, int protocol)
drivers/isdn/hardware/mISDN/hfcsusb.c
692
hw->name, __func__, bch->state, protocol,
drivers/isdn/hardware/mISDN/hfcsusb.c
697
if (protocol > ISDN_P_NONE)
drivers/isdn/hardware/mISDN/hfcsusb.c
700
switch (protocol) {
drivers/isdn/hardware/mISDN/hfcsusb.c
713
bch->state = protocol;
drivers/isdn/hardware/mISDN/hfcsusb.c
717
bch->state = protocol;
drivers/isdn/hardware/mISDN/hfcsusb.c
723
hw->name, __func__, protocol);
drivers/isdn/hardware/mISDN/hfcsusb.c
727
if (protocol >= ISDN_P_NONE) {
drivers/isdn/hardware/mISDN/hfcsusb.c
735
sctrl = 0x40 + ((hw->protocol == ISDN_P_TE_S0) ? 0x00 : 0x04);
drivers/isdn/hardware/mISDN/hfcsusb.c
748
if (protocol > ISDN_P_NONE)
drivers/isdn/hardware/mISDN/hfcsusb.h
301
__u8 protocol;
drivers/isdn/hardware/mISDN/mISDNipac.c
1353
ret = hscx_mode(hx, ch->protocol);
drivers/isdn/hardware/mISDN/mISDNipac.c
1403
ch->protocol = ISDN_P_NONE;
drivers/isdn/hardware/mISDN/mISDNipac.c
1486
if (rq->protocol == ISDN_P_NONE)
drivers/isdn/hardware/mISDN/mISDNipac.c
1492
bch->ch.protocol = rq->protocol;
drivers/isdn/hardware/mISDN/mISDNipac.c
1539
if (rq->protocol == ISDN_P_TE_S0)
drivers/isdn/hardware/mISDN/mISDNipac.c
748
if (rq->protocol != ISDN_P_TE_S0)
drivers/isdn/hardware/mISDN/mISDNipac.c
754
rq->ch->protocol = rq->protocol;
drivers/isdn/hardware/mISDN/mISDNisar.c
1489
ret = modeisar(ich, ch->protocol);
drivers/isdn/hardware/mISDN/mISDNisar.c
1586
ch->protocol = ISDN_P_NONE;
drivers/isdn/hardware/mISDN/mISDNisar.c
1642
if (rq->protocol == ISDN_P_NONE)
drivers/isdn/hardware/mISDN/mISDNisar.c
1647
bch->ch.protocol = rq->protocol;
drivers/isdn/hardware/mISDN/netjet.c
199
mode_tiger(struct tiger_ch *bc, u32 protocol)
drivers/isdn/hardware/mISDN/netjet.c
204
bc->bch.nr, bc->bch.state, protocol);
drivers/isdn/hardware/mISDN/netjet.c
205
switch (protocol) {
drivers/isdn/hardware/mISDN/netjet.c
210
bc->bch.state = protocol;
drivers/isdn/hardware/mISDN/netjet.c
226
bc->bch.state = protocol;
drivers/isdn/hardware/mISDN/netjet.c
240
bc->bch.state = protocol;
drivers/isdn/hardware/mISDN/netjet.c
256
__func__, protocol);
drivers/isdn/hardware/mISDN/netjet.c
760
ret = mode_tiger(bc, ch->protocol);
drivers/isdn/hardware/mISDN/netjet.c
807
ch->protocol = ISDN_P_NONE;
drivers/isdn/hardware/mISDN/netjet.c
856
if (rq->protocol == ISDN_P_NONE)
drivers/isdn/hardware/mISDN/netjet.c
862
bch->ch.protocol = rq->protocol;
drivers/isdn/hardware/mISDN/netjet.c
883
if (rq->protocol == ISDN_P_TE_S0)
drivers/isdn/hardware/mISDN/speedfax.c
249
if (rq->protocol == ISDN_P_TE_S0)
drivers/isdn/hardware/mISDN/w6692.c
1042
ch->protocol = ISDN_P_NONE;
drivers/isdn/hardware/mISDN/w6692.c
1163
if (rq->protocol != ISDN_P_TE_S0)
drivers/isdn/hardware/mISDN/w6692.c
1169
rq->ch->protocol = rq->protocol;
drivers/isdn/hardware/mISDN/w6692.c
1189
if (rq->protocol == ISDN_P_TE_S0)
drivers/isdn/hardware/mISDN/w6692.c
954
ret = w6692_mode(bc, ch->protocol);
drivers/isdn/hardware/mISDN/w6692.c
994
if (rq->protocol == ISDN_P_NONE)
drivers/isdn/hardware/mISDN/w6692.c
999
bch->ch.protocol = rq->protocol;
drivers/isdn/mISDN/core.c
83
return sprintf(buf, "%d\n", mdev->D.protocol);
drivers/isdn/mISDN/core.c
85
static DEVICE_ATTR_RO(protocol);
drivers/isdn/mISDN/dsp_core.c
1053
if (crq->protocol != ISDN_P_B_L2DSP
drivers/isdn/mISDN/dsp_core.c
1054
&& crq->protocol != ISDN_P_B_L2DSPHDLC)
drivers/isdn/mISDN/dsp_core.c
1071
if (crq->protocol == ISDN_P_B_L2DSP) {
drivers/isdn/mISDN/dsp_core.c
1072
crq->protocol = ISDN_P_B_RAW;
drivers/isdn/mISDN/dsp_core.c
1075
crq->protocol = ISDN_P_B_HDLC;
drivers/isdn/mISDN/l1oip_core.c
1013
if (rq->protocol == ISDN_P_NONE)
drivers/isdn/mISDN/l1oip_core.c
1024
bch->ch.protocol = rq->protocol;
drivers/isdn/mISDN/l1oip_core.c
1046
switch (rq->protocol) {
drivers/isdn/mISDN/l1oip_core.c
1214
ch->protocol = ISDN_P_NONE;
drivers/isdn/mISDN/l1oip_core.c
984
if (rq->protocol == ISDN_P_NONE)
drivers/isdn/mISDN/l1oip_core.c
986
if ((dch->dev.D.protocol != ISDN_P_NONE) &&
drivers/isdn/mISDN/l1oip_core.c
987
(dch->dev.D.protocol != rq->protocol)) {
drivers/isdn/mISDN/l1oip_core.c
990
__func__, dch->dev.D.protocol, rq->protocol);
drivers/isdn/mISDN/l1oip_core.c
992
if (dch->dev.D.protocol != rq->protocol)
drivers/isdn/mISDN/l1oip_core.c
993
dch->dev.D.protocol = rq->protocol;
drivers/isdn/mISDN/layer2.c
2108
create_l2(struct mISDNchannel *ch, u_int protocol, u_long options, int tei,
drivers/isdn/mISDN/layer2.c
2125
switch (protocol) {
drivers/isdn/mISDN/layer2.c
2145
rq.protocol = ISDN_P_NT_E1;
drivers/isdn/mISDN/layer2.c
2147
rq.protocol = ISDN_P_NT_S0;
drivers/isdn/mISDN/layer2.c
2170
rq.protocol = ISDN_P_TE_E1;
drivers/isdn/mISDN/layer2.c
2172
rq.protocol = ISDN_P_TE_S0;
drivers/isdn/mISDN/layer2.c
2188
protocol);
drivers/isdn/mISDN/layer2.c
2219
if (crq->protocol != ISDN_P_B_X75SLP)
drivers/isdn/mISDN/layer2.c
2221
l2 = create_l2(crq->ch, crq->protocol, 0, 0, 0);
drivers/isdn/mISDN/layer2.c
2225
crq->protocol = ISDN_P_B_HDLC;
drivers/isdn/mISDN/socket.c
383
di.protocol = dev->D.protocol;
drivers/isdn/mISDN/socket.c
544
_pms(sk)->ch.protocol = sk->sk_protocol;
drivers/isdn/mISDN/socket.c
593
data_sock_create(struct net *net, struct socket *sock, int protocol, int kern)
drivers/isdn/mISDN/socket.c
610
sk->sk_protocol = protocol;
drivers/isdn/mISDN/socket.c
666
di.protocol = dev->D.protocol;
drivers/isdn/mISDN/socket.c
749
base_sock_create(struct net *net, struct socket *sock, int protocol, int kern)
drivers/isdn/mISDN/socket.c
766
sk->sk_protocol = protocol;
drivers/isdn/mISDN/stack.c
418
u_int protocol, struct sockaddr_mISDN *adr)
drivers/isdn/mISDN/stack.c
427
__func__, dev_name(&dev->dev), protocol, adr->dev,
drivers/isdn/mISDN/stack.c
429
switch (protocol) {
drivers/isdn/mISDN/stack.c
437
rq.protocol = protocol;
drivers/isdn/mISDN/stack.c
456
u_int protocol, struct sockaddr_mISDN *adr)
drivers/isdn/mISDN/stack.c
464
__func__, dev_name(&dev->dev), protocol,
drivers/isdn/mISDN/stack.c
468
pmask = 1 << (protocol & ISDN_P_B_MASK);
drivers/isdn/mISDN/stack.c
470
rq.protocol = protocol;
drivers/isdn/mISDN/stack.c
484
rq2.protocol = protocol;
drivers/isdn/mISDN/stack.c
493
rq.protocol = rq2.protocol;
drivers/isdn/mISDN/stack.c
506
ch->protocol = protocol;
drivers/isdn/mISDN/stack.c
513
u_int protocol, struct sockaddr_mISDN *adr)
drivers/isdn/mISDN/stack.c
520
__func__, dev_name(&dev->dev), protocol,
drivers/isdn/mISDN/stack.c
523
rq.protocol = ISDN_P_TE_S0;
drivers/isdn/mISDN/stack.c
525
rq.protocol = ISDN_P_TE_E1;
drivers/isdn/mISDN/stack.c
526
switch (protocol) {
drivers/isdn/mISDN/stack.c
528
rq.protocol = ISDN_P_NT_S0;
drivers/isdn/mISDN/stack.c
530
rq.protocol = ISDN_P_NT_E1;
drivers/isdn/mISDN/stack.c
541
rq.protocol = protocol;
drivers/isdn/mISDN/stack.c
547
if ((protocol == ISDN_P_LAPD_NT) && !rq.ch)
drivers/isdn/mISDN/stack.c
573
dev_name(&ch->st->dev->dev), ch->protocol);
drivers/isdn/mISDN/stack.c
574
if (ch->protocol >= ISDN_P_B_START) {
drivers/isdn/mISDN/stack.c
581
switch (ch->protocol) {
drivers/isdn/mISDN/tei.c
1003
if (crq->protocol == ISDN_P_LAPD_TE)
drivers/isdn/mISDN/tei.c
1014
if (crq->protocol == ISDN_P_LAPD_NT)
drivers/isdn/mISDN/tei.c
1019
if (crq->protocol == ISDN_P_LAPD_NT)
drivers/isdn/mISDN/tei.c
1021
if (crq->protocol == ISDN_P_LAPD_TE)
drivers/isdn/mISDN/tei.c
1028
if ((crq->protocol == ISDN_P_LAPD_NT) && (crq->adr.tei == 127)) {
drivers/isdn/mISDN/tei.c
1045
l2 = create_l2(crq->ch, crq->protocol, opt,
drivers/isdn/mISDN/tei.c
1060
if (crq->protocol == ISDN_P_LAPD_TE) {
drivers/isdn/mISDN/tei.c
1065
l1rq.protocol = ISDN_P_TE_E1;
drivers/isdn/mISDN/tei.c
1067
l1rq.protocol = ISDN_P_TE_S0;
drivers/isdn/mISDN/tei.c
1073
l1rq.protocol = ISDN_P_NT_E1;
drivers/isdn/mISDN/tei.c
1075
l1rq.protocol = ISDN_P_NT_S0;
drivers/isdn/mISDN/tei.c
797
rq.protocol = ISDN_P_NT_E1;
drivers/isdn/mISDN/tei.c
799
rq.protocol = ISDN_P_NT_S0;
drivers/isdn/mISDN/tei.c
994
crq->protocol, crq->adr.dev, crq->adr.channel,
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
553
static int get_key_pvr2000(struct IR_i2c *ir, enum rc_proto *protocol,
drivers/media/pci/cx88/cx88-input.c
578
*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
2317
skb->protocol = htons(ETH_P_IP);
drivers/net/amt.c
2330
skb->protocol = htons(ETH_P_IPV6);
drivers/net/amt.c
2401
skb->protocol = htons(ETH_P_IP);
drivers/net/amt.c
2427
skb->protocol = htons(ETH_P_IPV6);
drivers/net/amt.c
2469
if (iptunnel_pull_header(skb, hdr_size, skb->protocol, false))
drivers/net/amt.c
2509
skb->protocol = htons(ETH_P_IP);
drivers/net/amt.c
2528
skb->protocol = htons(ETH_P_IPV6);
drivers/net/amt.c
2628
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
320
if (skb_vlan_inet_prepare(skb, skb->protocol != htons(ETH_P_TEB)))
drivers/net/bareudp.c
390
if (skb_vlan_inet_prepare(skb, skb->protocol != htons(ETH_P_TEB)))
drivers/net/bareudp.c
468
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
2892
if (skb->protocol != PKT_TYPE_LACPDU)
drivers/net/bonding/bond_3ad.c
944
skb->protocol = PKT_TYPE_LACPDU;
drivers/net/bonding/bond_3ad.c
998
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
3414
bool is_ipv6 = skb->protocol == __cpu_to_be16(ETH_P_IPV6);
drivers/net/bonding/bond_main.c
3416
bool is_arp = skb->protocol == __cpu_to_be16(ETH_P_ARP);
drivers/net/bonding/bond_main.c
4129
*ip_proto = iph->protocol;
drivers/net/bonding/bond_main.c
4279
return __bond_xmit_hash(bond, skb, skb->data, skb->protocol,
drivers/net/bonding/bond_main.c
4965
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/bonding/bond_main.c
4973
if (iph->protocol == IPPROTO_IGMP) {
drivers/net/bonding/bond_main.c
5014
if (iph->protocol == IPPROTO_IGMP) {
drivers/net/bonding/bond_main.c
5268
if (skb->protocol == htons(ETH_P_ARP))
drivers/net/bonding/bond_main.c
5271
if (skb->protocol == htons(ETH_P_IPV6)) {
drivers/net/caif/caif_serial.c
181
skb->protocol = htons(ETH_P_CAIF);
drivers/net/caif/caif_virtio.c
295
skb->protocol = htons(ETH_P_CAIF);
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
945
skb->protocol = eth_type_trans(skb,dev);
drivers/net/ethernet/3com/3c515.c
1295
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/3com/3c515.c
1378
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/3com/3c574_cs.c
1017
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/3com/3c589_cs.c
872
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
1679
new_skb->protocol = eth_type_trans(new_skb, tp->dev);
drivers/net/ethernet/8390/axnet_cs.c
1409
skb->protocol=eth_type_trans(skb,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
649
q->skb->protocol = eth_type_trans(q->skb, port->dev);
drivers/net/ethernet/airoha/airoha_eth.h
348
u8 protocol;
drivers/net/ethernet/airoha/airoha_eth.h
394
u8 protocol;
drivers/net/ethernet/alacritech/slicoss.c
605
skb->protocol = eth_type_trans(skb, dev);
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/alteon/acenic.c
1982
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
1014
skb->protocol = eth_type_trans(skb, rx_ring->netdev);
drivers/net/ethernet/amazon/ena/ena_netdev.c
2445
l4_protocol = ip_hdr(skb)->protocol;
drivers/net/ethernet/amazon/ena/ena_netdev.c
991
skb->protocol = eth_type_trans(skb, rx_ring->netdev);
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/lance.c
1211
skb->protocol=eth_type_trans(skb,dev);
drivers/net/ethernet/amd/nmclan_cs.c
1110
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
1469
switch (skb->protocol) {
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1471
if (ip_hdr(skb)->protocol != IPPROTO_UDP)
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2343
(skb->protocol == htons(ETH_P_8021Q)))
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2387
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
118
(ip_hdr(skb)->protocol == IPPROTO_UDP) &&
drivers/net/ethernet/aquantia/atlantic/aq_nic.c
688
l4proto = ip_hdr(skb)->protocol;
drivers/net/ethernet/aquantia/atlantic/aq_nic.c
748
dx_buff->is_ip_cso = (htons(ETH_P_IP) == skb->protocol);
drivers/net/ethernet/aquantia/atlantic/aq_ring.c
678
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
179
switch (skb->protocol) {
drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c
184
ip_proto = ip_hdr(skb)->protocol;
drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c
551
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
3248
skb->protocol = eth_type_trans(skb, bp->dev);
drivers/net/ethernet/broadcom/bnx2.c
3251
skb->protocol != htons(0x8100) &&
drivers/net/ethernet/broadcom/bnx2.c
3252
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
14019
l4_proto = &ip_hdr(skb)->protocol;
drivers/net/ethernet/broadcom/bnxt/bnxt.c
1641
if (iph->protocol == IPPROTO_UDP)
drivers/net/ethernet/broadcom/bnxt/bnxt.c
1795
bnxt_gro_tunnel(skb, skb->protocol);
drivers/net/ethernet/broadcom/bnxt/bnxt.c
1964
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/broadcom/bnxt/bnxt.c
2324
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
2081
ip_ver = skb->protocol;
drivers/net/ethernet/broadcom/genet/bcmgenet.c
2084
ip_proto = ip_hdr(skb)->protocol;
drivers/net/ethernet/broadcom/genet/bcmgenet.c
2430
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
1497
skb->protocol = eth_type_trans(skb, bp->dev);
drivers/net/ethernet/cadence/macb_main.c
1599
skb->protocol = eth_type_trans(skb, bp->dev);
drivers/net/ethernet/cadence/macb_main.c
2098
if (ip_hdr(skb)->protocol == IPPROTO_UDP)
drivers/net/ethernet/cadence/macb_main.c
2260
if (!skb_is_nonlinear(skb) || (ip_hdr(skb)->protocol != IPPROTO_UDP))
drivers/net/ethernet/cadence/macb_main.c
2383
if (ip_hdr(skb)->protocol == IPPROTO_UDP)
drivers/net/ethernet/cadence/macb_main.c
4980
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/calxeda/xgmac.c
1206
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/chelsio/inline_crypto/chtls/chtls.h
394
u8 protocol;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1083
if (skb->protocol) {
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_hw.c
394
kwr->wr.protocol = 0;
drivers/net/ethernet/cirrus/cs89x0.c
469
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/cirrus/cs89x0.c
703
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
263
proto = ip_hdr(skb)->protocol;
drivers/net/ethernet/cisco/enic/enic_main.c
655
if (skb->protocol == cpu_to_be16(ETH_P_IP)) {
drivers/net/ethernet/cisco/enic/enic_main.c
659
} 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
1155
if (skb->protocol == htons(ETH_P_IP))
drivers/net/ethernet/cortina/gemini.c
1156
tcp = (ip_hdr(skb)->protocol == IPPROTO_TCP);
drivers/net/ethernet/cortina/gemini.c
1215
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
468
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
1242
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
117
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
482
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
1479
u16 ethertype = ntohs(skb->protocol);
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
1509
l4_proto = iph->protocol;
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
1522
ntohs(skb->protocol));
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
2814
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
2501
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
212
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
1689
if (ip_hdr(skb)->protocol == IPPROTO_UDP) {
drivers/net/ethernet/freescale/gianfar.c
2533
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/fujitsu/fmvj18x_cs.c
1005
skb->protocol = eth_type_trans(skb, dev);
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
618
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
1271
if (skb->protocol == htons(ETH_P_IPV6)) {
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1277
} else if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1278
l4_proto_tmp = l3.v4->protocol;
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1302
l4_proto_tmp = l3.v4->protocol;
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1364
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1373
} else if (skb->protocol == htons(ETH_P_IPV6)) {
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1511
if (!(skb->protocol == htons(ETH_P_8021Q) ||
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1526
if (skb->protocol == htons(ETH_P_8021Q) &&
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1532
skb->protocol = vlan_get_protocol(skb);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1540
if (skb->protocol == htons(ETH_P_8021Q) &&
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1547
skb->protocol = vlan_get_protocol(skb);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1559
skb->protocol = vlan_get_protocol(skb);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
3025
__be16 protocol = skb->protocol;
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
3028
if (protocol == htons(ETH_P_8021Q))
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
3029
protocol = vlan_get_protocol(skb);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
3031
if (protocol == htons(ETH_P_IP))
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
3033
else if (protocol == htons(ETH_P_IPV6))
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
3865
__be16 type = skb->protocol;
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
4344
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
398
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
1784
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
2014
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
5455
__be16 protocol)
drivers/net/ethernet/intel/e1000e/netdev.c
5474
if (protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/intel/e1000e/netdev.c
5520
__be16 protocol)
drivers/net/ethernet/intel/e1000e/netdev.c
5532
switch (protocol) {
drivers/net/ethernet/intel/e1000e/netdev.c
5534
if (ip_hdr(skb)->protocol == IPPROTO_TCP)
drivers/net/ethernet/intel/e1000e/netdev.c
5545
be16_to_cpu(protocol));
drivers/net/ethernet/intel/e1000e/netdev.c
561
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/intel/e1000e/netdev.c
5756
if (ip->protocol != IPPROTO_UDP)
drivers/net/ethernet/intel/e1000e/netdev.c
5816
__be16 protocol = vlan_get_protocol(skb);
drivers/net/ethernet/intel/e1000e/netdev.c
5888
tso = e1000_tso(tx_ring, skb, protocol);
drivers/net/ethernet/intel/e1000e/netdev.c
5896
else if (e1000_tx_csum(tx_ring, skb, protocol))
drivers/net/ethernet/intel/e1000e/netdev.c
5903
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
4243
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
1599
__be16 frag_off, protocol;
drivers/net/ethernet/intel/ice/ice_txrx.c
1607
protocol = vlan_get_protocol(skb);
drivers/net/ethernet/intel/ice/ice_txrx.c
1609
if (eth_p_mpls(protocol)) {
drivers/net/ethernet/intel/ice/ice_txrx.c
1638
l4_proto = ip.v4->protocol;
drivers/net/ethernet/intel/ice/ice_txrx.c
1713
l4_proto = ip.v4->protocol;
drivers/net/ethernet/intel/ice/ice_txrx.c
1808
if (!skb_vlan_tag_present(skb) && eth_type_vlan(skb->protocol))
drivers/net/ethernet/intel/ice/ice_txrx.c
1848
__be16 protocol;
drivers/net/ethernet/intel/ice/ice_txrx.c
1863
protocol = vlan_get_protocol(skb);
drivers/net/ethernet/intel/ice/ice_txrx.c
1865
if (eth_p_mpls(protocol))
drivers/net/ethernet/intel/ice/ice_txrx.c
2290
if (skb->protocol == htons(ETH_P_IP))
drivers/net/ethernet/intel/ice/ice_txrx.c
2292
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
2276
__be16 protocol = vlan_get_protocol(skb);
drivers/net/ethernet/intel/igbvf/netdev.c
2305
if (protocol == htons(ETH_P_IP))
drivers/net/ethernet/intel/igbvf/netdev.c
2318
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
7535
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/intel/igc/igc_tsn.c
38
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
10201
__be16 protocol = cls->common.protocol;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
10222
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
8064
.protocol = 0,
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
8740
if (eth_p_mpls(first->protocol))
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9126
if ((first->protocol != htons(ETH_P_IP)) &&
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9127
(first->protocol != htons(ETH_P_IPV6)))
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9136
first->protocol == htons(ETH_P_IP) &&
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9137
hdr.ipv4->protocol == IPPROTO_UDP) {
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9165
l4_proto = hdr.ipv4->protocol;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9214
common.port.src ^= th->dest ^ first->protocol;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9328
tx_buff->protocol = 0;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9384
__be16 protocol = skb->protocol;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9414
} else if (protocol == htons(ETH_P_8021Q)) {
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9424
protocol = vlan_get_protocol(skb);
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9474
first->protocol = protocol;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9478
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
3831
if (eth_p_mpls(first->protocol))
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
3928
if (first->protocol == htons(ETH_P_IP))
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
4213
first->protocol = vlan_get_protocol(skb);
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
528
skb->protocol = eth_type_trans(skb, rx_ring->netdev);
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
998
tx_buffer->protocol = 0;
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
4044
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
465
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
2347
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
1129
temp.protocol = i;
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c
484
(app->protocol >= MLX5E_MAX_DSCP))
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c
489
temp.protocol = app->protocol;
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c
490
temp.priority = priv->dcbx_dp.dscp2prio[app->protocol];
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c
500
if (app->priority != priv->dcbx_dp.dscp2prio[app->protocol]) {
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c
501
err = mlx5e_set_dscp2prio(priv, app->protocol, app->priority);
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c
537
(app->protocol >= MLX5E_MAX_DSCP))
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c
545
if (app->priority != priv->dcbx_dp.dscp2prio[app->protocol])
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c
554
err = mlx5e_set_dscp2prio(priv, app->protocol, 0);
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
5026
proto = ip_hdr(skb)->protocol;
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
1180
if (ipv4->protocol == IPPROTO_TCP)
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
1243
return (proto == htons(ETH_P_IP)) ? ((struct iphdr *)ip_p)->protocol :
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
1458
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
2513
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
3485
__u8 protocol;
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
3521
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
7215
enum mlxsw_reg_ritr_loopback_protocol protocol =
drivers/net/ethernet/mellanox/mlxsw/reg.h
7218
mlxsw_reg_ritr_loopback_protocol_set(payload, protocol);
drivers/net/ethernet/mellanox/mlxsw/reg.h
7758
MLXSW_ITEM32(reg, ralta, protocol, 0x00, 24, 4);
drivers/net/ethernet/mellanox/mlxsw/reg.h
7769
enum mlxsw_reg_ralxx_protocol protocol,
drivers/net/ethernet/mellanox/mlxsw/reg.h
7774
mlxsw_reg_ralta_protocol_set(payload, protocol);
drivers/net/ethernet/mellanox/mlxsw/reg.h
7870
MLXSW_ITEM32(reg, raltb, protocol, 0x00, 12, 4);
drivers/net/ethernet/mellanox/mlxsw/reg.h
7881
enum mlxsw_reg_ralxx_protocol protocol,
drivers/net/ethernet/mellanox/mlxsw/reg.h
7886
mlxsw_reg_raltb_protocol_set(payload, protocol);
drivers/net/ethernet/mellanox/mlxsw/reg.h
7904
MLXSW_ITEM32(reg, ralue, protocol, 0x00, 24, 4);
drivers/net/ethernet/mellanox/mlxsw/reg.h
8095
enum mlxsw_reg_ralxx_protocol protocol,
drivers/net/ethernet/mellanox/mlxsw/reg.h
8100
mlxsw_reg_ralue_protocol_set(payload, protocol);
drivers/net/ethernet/mellanox/mlxsw/reg.h
8110
enum mlxsw_reg_ralxx_protocol protocol,
drivers/net/ethernet/mellanox/mlxsw/reg.h
8115
mlxsw_reg_ralue_pack(payload, protocol, op, virtual_router, prefix_len);
drivers/net/ethernet/mellanox/mlxsw/reg.h
8120
enum mlxsw_reg_ralxx_protocol protocol,
drivers/net/ethernet/mellanox/mlxsw/reg.h
8125
mlxsw_reg_ralue_pack(payload, protocol, op, virtual_router, prefix_len);
drivers/net/ethernet/mellanox/mlxsw/reg.h
8338
MLXSW_ITEM32(reg, raleu, protocol, 0x00, 24, 4);
drivers/net/ethernet/mellanox/mlxsw/reg.h
8372
enum mlxsw_reg_ralxx_protocol protocol,
drivers/net/ethernet/mellanox/mlxsw/reg.h
8379
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
286
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
2555
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
456
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
1963
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/microsoft/mana/mana_en.c
416
if (skb->protocol == htons(ETH_P_IP))
drivers/net/ethernet/microsoft/mana/mana_en.c
418
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
755
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
1674
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/ethernet/packetengines/hamachi.c
1523
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/packetengines/yellowfin.c
1154
skb->protocol = eth_type_trans(skb, dev);
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
1969
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
1010
skb->protocol = eth_type_trans(skb, edev->ndev);
drivers/net/ethernet/qlogic/qede/qede_fp.c
1328
skb->protocol = eth_type_trans(skb, edev->ndev);
drivers/net/ethernet/qlogic/qede/qede_fp.c
1770
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
938
switch (skb->protocol) {
drivers/net/ethernet/qlogic/qede/qede_fp.c
948
ntohs(skb->protocol));
drivers/net/ethernet/qlogic/qede/qede_main.c
1216
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
178
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
420
if (skb->protocol == htons(ETH_P_IP))
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
423
if (IS_ENABLED(CONFIG_IPV6) && skb->protocol == htons(ETH_P_IPV6))
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
451
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
457
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
617
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
671
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
4386
return ih && ih->protocol == IPPROTO_UDP;
drivers/net/ethernet/realtek/r8169_main.c
4460
if (ip->protocol == IPPROTO_TCP)
drivers/net/ethernet/realtek/r8169_main.c
4462
else if (ip->protocol == IPPROTO_UDP)
drivers/net/ethernet/realtek/r8169_main.c
4496
ip_protocol = ip_hdr(skb)->protocol;
drivers/net/ethernet/realtek/r8169_main.c
4833
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/realtek/rtase/rtase_main.c
1226
ip_protocol = ip_hdr(skb)->protocol;
drivers/net/ethernet/realtek/rtase/rtase_main.c
563
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/renesas/ravb_main.c
1038
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/renesas/ravb_main.c
2075
u16 net_protocol = ntohs(skb->protocol);
drivers/net/ethernet/renesas/ravb_main.c
2097
inner_protocol = ip_hdr(skb)->protocol;
drivers/net/ethernet/renesas/ravb_main.c
920
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
279
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
1196
skb->protocol = eth_type_trans(skb, dev);
drivers/net/ethernet/smsc/smc9194.c
1212
skb->protocol = eth_type_trans(skb, dev );
drivers/net/ethernet/smsc/smc91c92_cs.c
1514
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
641
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
5313
skb->protocol = eth_type_trans(skb, priv->dev);
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
5832
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
2092
skb->protocol = eth_type_trans(skb, cp->dev);
drivers/net/ethernet/sun/cassini.c
2093
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
853
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
1357
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
1109
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/ti/icssg/icssg_common.c
914
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
1517
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
1627
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
1019
__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
871
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ethernet/wiznet/w5300.c
399
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
992
skb->protocol = eth_type_trans(skb, netdev);
drivers/net/geneve.c
1188
nested_is_v6 = skb->protocol == htons(ETH_P_IPV6);
drivers/net/geneve.c
1198
if (ip_hdr(skb)->protocol != IPPROTO_UDP)
drivers/net/geneve.c
1205
hint->nested_is_v6 = skb->protocol == htons(ETH_P_IPV6);
drivers/net/geneve.c
1261
inner_proto = inner_proto_inherit ? skb->protocol : htons(ETH_P_TEB);
drivers/net/geneve.c
1354
skb->protocol = eth_type_trans(skb, geneve->dev);
drivers/net/geneve.c
1464
skb->protocol = eth_type_trans(skb, geneve->dev);
drivers/net/geneve.c
305
skb->protocol = eth_type_trans(skb, geneve->dev);
drivers/net/geneve.c
517
iph->protocol != IPPROTO_UDP || ip_fast_csum((u8 *)iph, 5))
drivers/net/geneve.c
852
if ((iph->protocol ^ iph2->protocol) |
drivers/net/gtp.c
1269
unsigned int proto = ntohs(skb->protocol);
drivers/net/hamradio/6pack.c
238
if (skb->protocol == htons(ETH_P_IP))
drivers/net/hamradio/6pack.c
341
skb->protocol = ax25_type_trans(skb, sp->dev);
drivers/net/hamradio/baycom_epp.c
546
skb->protocol = ax25_type_trans(skb, dev);
drivers/net/hamradio/baycom_epp.c
759
if (skb->protocol == htons(ETH_P_IP))
drivers/net/hamradio/bpqether.c
199
skb->protocol = ax25_type_trans(skb, dev);
drivers/net/hamradio/bpqether.c
225
if (skb->protocol == htons(ETH_P_IP))
drivers/net/hamradio/bpqether.c
267
skb->protocol = ax25_type_trans(skb, dev);
drivers/net/hamradio/hdlcdrv.c
151
skb->protocol = ax25_type_trans(skb, dev);
drivers/net/hamradio/hdlcdrv.c
395
if (skb->protocol == htons(ETH_P_IP))
drivers/net/hamradio/mkiss.c
294
skb->protocol = ax25_type_trans(skb, ax->dev);
drivers/net/hamradio/mkiss.c
524
if (skb->protocol == htons(ETH_P_IP))
drivers/net/hamradio/scc.c
1632
skb->protocol = ax25_type_trans(skb, scc->dev);
drivers/net/hamradio/scc.c
1645
if (skb->protocol == htons(ETH_P_IP))
drivers/net/hamradio/yam.c
545
skb->protocol = ax25_type_trans(skb, dev);
drivers/net/hamradio/yam.c
585
if (skb->protocol == htons(ETH_P_IP))
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
503
skb->protocol = eth_hdr(skb)->h_proto;
drivers/net/macsec.c
821
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
231
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
214
skb->protocol = htons(ETH_P_IP);
drivers/net/mhi_net.c
217
skb->protocol = htons(ETH_P_IPV6);
drivers/net/mhi_net.c
220
skb->protocol = htons(ETH_P_MAP);
drivers/net/netdevsim/bpf.c
135
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
119
skb->protocol = eth_type_trans(skb, ndev);
drivers/net/ovpn/bind.h
69
switch (skb->protocol) {
drivers/net/ovpn/io.c
179
skb->protocol = proto;
drivers/net/ovpn/io.c
183
if (skb->protocol == htons(ETH_P_IPV6))
drivers/net/ovpn/io.c
368
if (unlikely(!proto || skb->protocol != proto))
drivers/net/ovpn/io.c
374
switch (skb->protocol) {
drivers/net/ovpn/peer.c
209
switch (skb->protocol) {
drivers/net/ovpn/peer.c
385
switch (skb->protocol) {
drivers/net/ovpn/peer.c
748
switch (skb->protocol) {
drivers/net/ovpn/peer.c
875
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
1457
npi = ethertype_to_npindex(ntohs(skb->protocol));
drivers/net/ppp/ppp_generic.c
2549
skb->protocol = htons(npindex_to_ethertype[npi]);
drivers/net/ppp/ppp_generic.c
917
err = proto_to_npindex(npi.protocol);
drivers/net/ppp/pppoe.c
885
skb->protocol = cpu_to_be16(ETH_P_PPP_SES);
drivers/net/ppp/pppoe.c
953
skb->protocol = cpu_to_be16(ETH_P_PPP_SES);
drivers/net/ppp/pppox.c
114
static int pppox_create(struct net *net, struct socket *sock, int protocol,
drivers/net/ppp/pppox.c
119
if (protocol < 0 || protocol > PX_MAX_PROTO)
drivers/net/ppp/pppox.c
123
if (!pppox_protos[protocol])
drivers/net/ppp/pppox.c
124
request_module("net-pf-%d-proto-%d", PF_PPPOX, protocol);
drivers/net/ppp/pppox.c
125
if (!pppox_protos[protocol] ||
drivers/net/ppp/pppox.c
126
!try_module_get(pppox_protos[protocol]->owner))
drivers/net/ppp/pppox.c
129
rc = pppox_protos[protocol]->create(net, sock, kern);
drivers/net/ppp/pppox.c
131
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
255
if (ip->protocol != IPPROTO_TCP || (ntohs(ip->frag_off) & 0x3fff)) {
drivers/net/slip/slhc.c
257
if(ip->protocol != IPPROTO_TCP)
drivers/net/slip/slhc.c
670
index = iph->protocol;
drivers/net/slip/slhc.c
671
iph->protocol = IPPROTO_TCP;
drivers/net/slip/slip.c
370
skb->protocol = htons(ETH_P_IP);
drivers/net/tap.c
1073
skb->protocol = eth_hdr(skb)->h_proto;
drivers/net/tap.c
1082
if (eth_type_vlan(skb->protocol) &&
drivers/net/tap.c
1083
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
1020
if (protocol == htons(ETH_P_8021Q)) {
drivers/net/thunderbolt/main.c
1027
protocol = vhdr->h_vlan_encapsulated_proto;
drivers/net/thunderbolt/main.c
1035
if (protocol == htons(ETH_P_IP)) {
drivers/net/thunderbolt/main.c
1042
if (ip_hdr(skb)->protocol == IPPROTO_TCP)
drivers/net/thunderbolt/main.c
1044
else if (ip_hdr(skb)->protocol == IPPROTO_UDP)
drivers/net/thunderbolt/main.c
1051
ip_hdr(skb)->protocol, 0);
drivers/net/thunderbolt/main.c
1057
} else if (protocol == htons(ETH_P_IPV6)) {
drivers/net/thunderbolt/main.c
888
skb->protocol = eth_type_trans(skb, net->dev);
drivers/net/thunderbolt/main.c
998
__be16 protocol = skb->protocol;
drivers/net/tun.c
1839
skb->protocol = pi.proto;
drivers/net/tun.c
1848
skb->protocol = eth_type_trans(skb, tun->dev);
drivers/net/tun.c
2038
struct tun_pi pi = { 0, skb->protocol };
drivers/net/tun.c
2462
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
172
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
926
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
3861
skb->protocol = eth_type_trans(skb, dev->net);
drivers/net/usb/lan78xx.c
3864
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
2325
ip_protocol = ip_hdr(skb)->protocol;
drivers/net/usb/r8152.c
2645
skb->protocol = eth_type_trans(skb,
drivers/net/usb/r8152.c
2656
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
1540
"> tx, len %u, type 0x%x\n", length, skb->protocol);
drivers/net/usb/usbnet.c
342
if (skb->protocol == 0)
drivers/net/usb/usbnet.c
343
skb->protocol = eth_type_trans(skb, dev->net);
drivers/net/usb/usbnet.c
351
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
2602
skb->protocol = eth_type_trans(skb, dev);
drivers/net/virtio_net.c
2604
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
1539
if (skb->protocol == cpu_to_be16(ETH_P_8021Q) ||
drivers/net/vmxnet3/vmxnet3_drv.c
1540
skb->protocol == cpu_to_be16(ETH_P_8021AD))
drivers/net/vmxnet3/vmxnet3_drv.c
1550
BUG_ON(hdr.ipv4->protocol != IPPROTO_TCP);
drivers/net/vmxnet3/vmxnet3_drv.c
1583
if (iph->protocol == IPPROTO_UDP)
drivers/net/vmxnet3/vmxnet3_drv.c
1904
skb->protocol = eth_type_trans(skb, adapter->netdev);
drivers/net/vmxnet3/vmxnet3_drv.c
1913
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
1218
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
688
skb->protocol = htons(ETH_P_IPV6);
drivers/net/vrf.c
865
skb->protocol = htons(ETH_P_IP);
drivers/net/vrf.c
918
skb->protocol = htons(ETH_P_IP);
drivers/net/vxlan/vxlan_core.c
1595
skb->protocol = eth_type_trans(skb, vxlan->dev);
drivers/net/vxlan/vxlan_core.c
1652
__be16 protocol = htons(ETH_P_TEB);
drivers/net/vxlan/vxlan_core.c
1705
if (!vxlan_parse_gpe_proto(vh, &protocol))
drivers/net/vxlan/vxlan_core.c
1710
if (__iptunnel_pull_header(skb, VXLAN_HLEN, protocol, raw_proto,
drivers/net/vxlan/vxlan_core.c
1956
reply->protocol = htons(ETH_P_IPV6);
drivers/net/vxlan/vxlan_core.c
1984
reply->protocol = htons(ETH_P_IPV6);
drivers/net/vxlan/vxlan_core.c
2177
static int vxlan_build_gpe_hdr(struct vxlanhdr *vxh, __be16 protocol)
drivers/net/vxlan/vxlan_core.c
2182
gpe->next_protocol = tun_p_from_eth_p(protocol);
drivers/net/vxlan/vxlan_core.c
2244
err = vxlan_build_gpe_hdr(vxh, skb->protocol);
drivers/net/vxlan/vxlan_core.c
2247
inner_protocol = skb->protocol;
drivers/net/vxlan/vxlan_core.c
2370
no_eth_encap = flags & VXLAN_F_GPE && skb->protocol != htons(ETH_P_TEB);
drivers/net/vxlan/vxlan_core.c
604
static bool vxlan_parse_gpe_proto(const struct vxlanhdr *hdr, __be16 *protocol)
drivers/net/vxlan/vxlan_core.c
623
*protocol = tun_p_to_eth_p(gpe->next_protocol);
drivers/net/vxlan/vxlan_core.c
624
if (!*protocol)
drivers/net/vxlan/vxlan_core.c
730
__be16 protocol;
drivers/net/vxlan/vxlan_core.c
735
if (!vxlan_parse_gpe_proto(vh, &protocol))
drivers/net/vxlan/vxlan_core.c
737
ptype = gro_find_receive_by_type(protocol);
drivers/net/vxlan/vxlan_core.c
761
__be16 protocol;
drivers/net/vxlan/vxlan_core.c
763
if (!vxlan_parse_gpe_proto(vh, &protocol))
drivers/net/vxlan/vxlan_core.c
765
ptype = gro_find_complete_by_type(protocol);
drivers/net/vxlan/vxlan_mdb.c
1626
switch (skb->protocol) {
drivers/net/vxlan/vxlan_mdb.c
1663
switch (skb->protocol) {
drivers/net/wan/farsync.c
1250
skb->protocol = farsync_type_trans(skb, dev);
drivers/net/wan/farsync.c
1252
skb->protocol = hdlc_type_trans(skb, dev);
drivers/net/wan/farsync.c
846
skb->protocol = farsync_type_trans(skb, dev);
drivers/net/wan/farsync.c
848
skb->protocol = hdlc_type_trans(skb, dev);
drivers/net/wan/fsl_qmc_hdlc.c
288
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
399
if (skb->protocol == htons(ETH_P_IP))
drivers/net/wireguard/allowedips.c
401
else if (skb->protocol == htons(ETH_P_IPV6))
drivers/net/wireguard/allowedips.c
410
if (skb->protocol == htons(ETH_P_IP))
drivers/net/wireguard/allowedips.c
412
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
239
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/wireguard/socket.c
245
} else if (IS_ENABLED(CONFIG_IPV6) && skb->protocol == htons(ETH_P_IPV6)) {
drivers/net/wireless/ath/ath12k/wifi7/dp_tx.c
185
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
1200
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
2003
u8 protocol = ip_hdr(skb)->protocol;
drivers/net/wireless/intel/iwlwifi/mld/mac80211.c
2005
return protocol == IPPROTO_TCP || protocol == IPPROTO_UDP;
drivers/net/wireless/intel/iwlwifi/mld/mac80211.c
2016
if (skb->protocol != htons(ETH_P_IP))
drivers/net/wireless/intel/iwlwifi/mld/tx.c
215
u8 protocol = 0;
drivers/net/wireless/intel/iwlwifi/mld/tx.c
227
if (WARN_ONCE(skb->protocol != htons(ETH_P_IP) &&
drivers/net/wireless/intel/iwlwifi/mld/tx.c
228
skb->protocol != htons(ETH_P_IPV6),
drivers/net/wireless/intel/iwlwifi/mld/tx.c
234
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/wireless/intel/iwlwifi/mld/tx.c
235
protocol = ip_hdr(skb)->protocol;
drivers/net/wireless/intel/iwlwifi/mld/tx.c
242
protocol = ipv6h->nexthdr;
drivers/net/wireless/intel/iwlwifi/mld/tx.c
243
while (protocol != NEXTHDR_NONE && ipv6_ext_hdr(protocol)) {
drivers/net/wireless/intel/iwlwifi/mld/tx.c
247
if (protocol != NEXTHDR_ROUTING &&
drivers/net/wireless/intel/iwlwifi/mld/tx.c
248
protocol != NEXTHDR_HOP &&
drivers/net/wireless/intel/iwlwifi/mld/tx.c
249
protocol != NEXTHDR_DEST) {
drivers/net/wireless/intel/iwlwifi/mld/tx.c
255
protocol = hp->nexthdr;
drivers/net/wireless/intel/iwlwifi/mld/tx.c
262
if (protocol != IPPROTO_TCP && protocol != IPPROTO_UDP) {
drivers/net/wireless/intel/iwlwifi/mld/tx.c
278
if (skb->protocol == htons(ETH_P_IP) && amsdu) {
drivers/net/wireless/intel/iwlwifi/mld/tx.c
284
if (protocol == IPPROTO_TCP)
drivers/net/wireless/intel/iwlwifi/mld/tx.c
825
if (skb->protocol == htons(ETH_P_IPV6) &&
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
6301
u8 protocol = ip_hdr(skb)->protocol;
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
6306
return protocol == IPPROTO_TCP || protocol == IPPROTO_UDP;
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
6316
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
194
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
1188
if (sta && likely(t->skb->protocol != cpu_to_be16(ETH_P_PAE)))
drivers/net/wireless/mediatek/mt76/mt7921/mac.c
824
if (sta && likely(e->skb->protocol != cpu_to_be16(ETH_P_PAE)))
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
1075
if (likely(t->skb->protocol != cpu_to_be16(ETH_P_PAE)))
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
1454
if (sta && likely(e->skb->protocol != cpu_to_be16(ETH_P_PAE)))
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
1028
if (unlikely(skb->protocol == cpu_to_be16(ETH_P_PAE)))
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
1066
likely(tx_info->skb->protocol != cpu_to_be16(ETH_P_PAE))) {
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
1100
if (tx_info->skb->protocol == cpu_to_be16(ETH_P_PAE) && sta->mlo) {
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
1293
if (likely(t->skb->protocol != cpu_to_be16(ETH_P_PAE))) {
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
880
(multicast || unlikely(skb->protocol == cpu_to_be16(ETH_P_PAE))))
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
980
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
5515
!(skb->protocol == cpu_to_be16(ETH_P_PAE)))
drivers/net/wireless/realtek/rtlwifi/base.c
1508
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
591
if (unlikely(skb->protocol == cpu_to_be16(ETH_P_PAE)))
drivers/net/wireless/realtek/rtw89/core.c
1110
if (skb->protocol == htons(ETH_P_ARP)) {
drivers/net/wireless/realtek/rtw89/core.c
1115
if (skb->protocol == htons(ETH_P_IP) &&
drivers/net/wireless/realtek/rtw89/core.c
1116
ip_hdr(skb)->protocol == IPPROTO_UDP) {
drivers/net/wireless/realtek/rtw89/core.c
1126
if (skb->protocol == htons(ETH_P_IP) &&
drivers/net/wireless/realtek/rtw89/core.c
1127
ip_hdr(skb)->protocol == IPPROTO_ICMP) {
drivers/net/wireless/realtek/rtw89/core.c
3970
if (unlikely(skb->protocol == cpu_to_be16(ETH_P_PAE))) {
drivers/net/wireless/realtek/rtw89/mac.c
3120
u8 protocol;
drivers/net/wireless/realtek/rtw89/mac.c
3168
protocol = u32_get_bits(phycap->w1, RTW89_C2HREG_PHYCAP_W1_PROT);
drivers/net/wireless/realtek/rtw89/mac.c
3169
if (protocol < RTW89_C2HREG_PHYCAP_W1_PROT_11BE)
drivers/net/wireless/ti/wl18xx/main.c
1294
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.c
1304
skb->protocol = htons(ETH_P_802_2);
drivers/net/wireless/virtual/mac80211_hwsim.c
1347
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
1387
if (ipc_mux->protocol == MUX_LITE)
drivers/net/wwan/iosm/iosm_ipc_mux_codec.c
1456
if (ipc_mux->protocol == MUX_LITE) {
drivers/net/wwan/iosm/iosm_ipc_mux_codec.c
1490
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
328
skbn->protocol = htons(ETH_P_IP);
drivers/net/wwan/mhi_wwan_mbim.c
331
skbn->protocol = htons(ETH_P_IPV6);
drivers/net/wwan/qcom_bam_dmux.c
527
skb->protocol = htons(ETH_P_IP);
drivers/net/wwan/qcom_bam_dmux.c
530
skb->protocol = htons(ETH_P_IPV6);
drivers/net/wwan/qcom_bam_dmux.c
533
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
1099
u32 pccr, pss, protocol;
drivers/phy/freescale/phy-fsl-lynx-28g.c
1102
protocol = FIELD_GET(LNaPSS_TYPE, pss);
drivers/phy/freescale/phy-fsl-lynx-28g.c
1103
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
583
if (gtr_phy->protocol == ICM_PROTOCOL_USB && gtr_phy->skip_phy_init)
drivers/phy/xilinx/phy-zynqmp.c
694
switch (gtr_phy->protocol) {
drivers/phy/xilinx/phy-zynqmp.c
741
if (gtr_phy->protocol != ICM_PROTOCOL_DP)
drivers/phy/xilinx/phy-zynqmp.c
770
gtr_phy->protocol = ICM_PROTOCOL_SATA;
drivers/phy/xilinx/phy-zynqmp.c
774
gtr_phy->protocol = ICM_PROTOCOL_USB;
drivers/phy/xilinx/phy-zynqmp.c
778
gtr_phy->protocol = ICM_PROTOCOL_DP;
drivers/phy/xilinx/phy-zynqmp.c
782
gtr_phy->protocol = ICM_PROTOCOL_PCIE;
drivers/phy/xilinx/phy-zynqmp.c
786
gtr_phy->protocol = ICM_PROTOCOL_SGMII;
drivers/phy/xilinx/phy-zynqmp.c
892
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
368
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
1527
skb->protocol = htons(ETH_P_FCOE);
drivers/scsi/fcoe/fcoe.c
1793
if (entry->app.protocol == ETH_P_FIP ||
drivers/scsi/fcoe/fcoe.c
1794
entry->app.protocol == ETH_P_FCOE)
drivers/scsi/fcoe/fcoe.c
1797
if (entry->app.protocol == ETH_P_FCOE)
drivers/scsi/fcoe/fcoe.c
2118
.protocol = ETH_P_FCOE
drivers/scsi/fcoe/fcoe.c
2128
app.protocol = ETH_P_FIP;
drivers/scsi/fcoe/fcoe.c
2133
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
1775
if (iphy->protocol == SAS_PROTOCOL_SSP) {
drivers/scsi/isci/host.c
1849
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
3983
u8 protocol;
drivers/scsi/mpi3mr/mpi3mr_fw.c
4125
char protocol[50] = {0};
drivers/scsi/mpi3mr/mpi3mr_fw.c
4149
mpi3mr_protocols[i].protocol) {
drivers/scsi/mpi3mr/mpi3mr_fw.c
4150
bytes_written += scnprintf(protocol + bytes_written,
drivers/scsi/mpi3mr/mpi3mr_fw.c
4151
sizeof(protocol) - bytes_written, "%s%s",
drivers/scsi/mpi3mr/mpi3mr_fw.c
4169
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
20
if (hdr->protocol != BSG_PROTOCOL_SCSI ||
drivers/scsi/scsi_transport_sas.c
144
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
1004
enum geni_se_protocol_type protocol)
drivers/soc/qcom/qcom-geni-se.c
1061
if (le32_to_cpu(sefw->serial_protocol) != protocol)
drivers/soc/qcom/qcom-geni-se.c
1085
dev_err(dev, "Failed to get %s protocol firmware\n", protocol_name[protocol]);
drivers/soc/qcom/qcom-geni-se.c
1188
enum geni_se_xfer_mode mode, enum geni_se_protocol_type protocol)
drivers/soc/qcom/qcom-geni-se.c
1196
hdr = geni_find_protocol_fw(se->dev, fw, protocol);
drivers/soc/qcom/qcom-geni-se.c
1312
int geni_load_se_firmware(struct geni_se *se, enum geni_se_protocol_type protocol)
drivers/soc/qcom/qcom-geni-se.c
1319
if (protocol >= ARRAY_SIZE(protocol_name)) {
drivers/soc/qcom/qcom-geni-se.c
1320
dev_err(se->dev, "Invalid geni-se protocol: %d", protocol);
drivers/soc/qcom/qcom-geni-se.c
1334
if (protocol == GENI_SE_UART)
drivers/soc/qcom/qcom-geni-se.c
1343
fw_name, protocol, ret);
drivers/soc/qcom/qcom-geni-se.c
1347
ret = geni_load_se_fw(se, fw, mode, protocol);
drivers/soc/qcom/qcom-geni-se.c
1352
protocol, ret);
drivers/soc/qcom/qcom-geni-se.c
1357
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
493
skb->protocol = eth_type_trans(skb, dev);
drivers/staging/octeon/ethernet-rx.c
336
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
574
if (skb->protocol == htons(ETH_P_IP)) {
drivers/staging/octeon/ethernet-tx.c
577
(ip_hdr(skb)->protocol == IPPROTO_TCP) ||
drivers/staging/octeon/ethernet-tx.c
578
(ip_hdr(skb)->protocol == IPPROTO_UDP);
drivers/staging/octeon/ethernet-tx.c
593
work->word2.snoip.is_rarp = skb->protocol == htons(ETH_P_RARP);
drivers/staging/octeon/ethernet-tx.c
594
work->word2.snoip.is_arp = skb->protocol == htons(ETH_P_ARP);
drivers/staging/rtl8723bs/core/rtw_recv.c
1703
pkt->protocol = eth_type_trans(pkt, padapter->pnetdev);
drivers/staging/rtl8723bs/core/rtw_xmit.c
694
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/tty/synclink_gt.c
1670
skb->protocol = hdlc_type_trans(skb, dev);
drivers/ufs/core/ufs-sysfs.c
1116
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
2159
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
1197
hidg->protocol = HID_REPORT_PROTOCOL;
drivers/usb/gadget/function/f_hid.c
1375
F_HID_OPT(protocol, 8, 255);
drivers/usb/gadget/function/f_hid.c
1621
hidg->bInterfaceProtocol = opts->protocol;
drivers/usb/gadget/function/f_hid.c
60
unsigned char protocol;
drivers/usb/gadget/function/f_hid.c
878
((u8 *) req->buf)[0] = hidg->protocol;
drivers/usb/gadget/function/f_hid.c
911
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
337
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
325
req->u.socket.protocol = IPPROTO_IP;
fs/afs/vl_list.c
207
bs.protocol = *b++;
fs/afs/vl_list.c
212
bs.port, bs.protocol, bs.nr_addrs,
fs/afs/vl_list.c
219
if (bs.protocol == DNS_SERVER_PROTOCOL_UNSPECIFIED) {
fs/afs/vl_list.c
220
bs.protocol = DNS_SERVER_PROTOCOL_UDP;
fs/afs/vl_list.c
221
} else if (bs.protocol != DNS_SERVER_PROTOCOL_UDP) {
fs/afs/vl_list.c
222
_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
341
.protocol = rqstp->rq_prot,
fs/lockd/host.c
369
if (host->h_proto != ni.protocol)
fs/lockd/host.c
452
.protocol = host->h_proto,
fs/lockd/host.c
57
const unsigned short protocol; /* transport to search for*/
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
835
.protocol = ctx->mount_server.protocol,
fs/nfs/super.c
875
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
1171
args.protocol = XPRT_TRANSPORT_TCP;
fs/nfsd/nfs4callback.c
1180
args.protocol = conn->cb_xprt->xpt_class->xcl_ident |
fs/smb/server/mgmt/user_session.c
658
static struct ksmbd_session *__session_create(int protocol)
fs/smb/server/mgmt/user_session.c
663
if (protocol != CIFDS_SESSION_FLAG_SMB2)
fs/smb/server/mgmt/user_session.c
675
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
1594
u16 protocol;
include/linux/filter.h
1666
static inline bool bpf_sk_lookup_run_v4(const struct net *net, int protocol,
include/linux/filter.h
1680
.protocol = protocol,
include/linux/filter.h
1703
static inline bool bpf_sk_lookup_run_v6(const struct net *net, int protocol,
include/linux/filter.h
1719
.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
384
veth->h_vlan_encapsulated_proto = skb->protocol;
include/linux/if_vlan.h
484
skb->protocol = vlan_proto;
include/linux/if_vlan.h
653
return __vlan_get_protocol(skb, skb->protocol, NULL);
include/linux/if_vlan.h
682
return skb_vlan_tag_present(skb) ? skb->vlan_proto : skb->protocol;
include/linux/if_vlan.h
700
skb->protocol = proto;
include/linux/if_vlan.h
713
skb->protocol = htons(ETH_P_802_3);
include/linux/if_vlan.h
718
skb->protocol = htons(ETH_P_802_2);
include/linux/if_vlan.h
750
likely(!eth_type_vlan(skb->protocol)))
include/linux/if_vlan.h
765
__be16 protocol = skb->protocol;
include/linux/if_vlan.h
770
if (likely(!eth_type_vlan(protocol)))
include/linux/if_vlan.h
777
protocol = veh->h_vlan_encapsulated_proto;
include/linux/if_vlan.h
780
if (!eth_type_vlan(protocol))
include/linux/libata.h
565
u8 protocol; /* ATA_PROT_xxx */
include/linux/lockd/bind.h
46
unsigned short protocol;
include/linux/lockd/lockd.h
234
const unsigned short protocol,
include/linux/lsm_hook_defs.h
324
LSM_HOOK(int, 0, socket_create, int family, int type, int protocol, int kern)
include/linux/lsm_hook_defs.h
326
int protocol, int kern)
include/linux/mISDNif.h
300
u_int protocol;
include/linux/mISDNif.h
313
__u32 protocol;
include/linux/mISDNif.h
450
u_int protocol;
include/linux/mISDNif.h
468
u_int protocol;
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
234
int protocol, int kern);
include/linux/netdevice.h
5252
__be16 protocol)
include/linux/netdevice.h
5254
if (protocol == htons(ETH_P_FCOE))
include/linux/netdevice.h
5264
switch (protocol) {
include/linux/netdevice.h
5454
return skb->protocol == htons(ETH_P_IPV6) ?
include/linux/netdevice.h
5463
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
198
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
1645
int security_socket_create(int family, int type, int protocol, int kern);
include/linux/security.h
1647
int type, int protocol, int kern);
include/linux/security.h
1717
int protocol, int kern)
include/linux/security.h
1725
int protocol, int kern)
include/linux/skbuff.h
1080
__be16 protocol;
include/linux/skbuff.h
2960
__be16 protocol)
include/linux/skbuff.h
2962
skb->inner_protocol = protocol;
include/linux/soc/qcom/geni-se.h
537
int geni_load_se_firmware(struct geni_se *se, enum geni_se_protocol_type protocol);
include/linux/socket.h
460
extern int __sys_socket(int family, int type, int protocol);
include/linux/socket.h
461
extern struct file *__sys_socket_file(int family, int type, int protocol);
include/linux/socket.h
475
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
279
void rc_keydown(struct rc_dev *dev, enum rc_proto protocol, u64 scancode,
include/media/rc-core.h
281
void rc_keydown_notimeout(struct rc_dev *dev, enum rc_proto protocol,
include/media/rc-core.h
318
int ir_raw_encode_scancode(enum rc_proto protocol, u32 scancode,
include/media/rc-core.h
320
int ir_raw_encode_carrier(enum rc_proto protocol);
include/media/rc-core.h
349
enum rc_proto *protocol)
include/media/rc-core.h
361
*protocol = RC_PROTO_NEC32;
include/media/rc-core.h
367
*protocol = RC_PROTO_NECX;
include/media/rc-core.h
371
*protocol = RC_PROTO_NEC;
include/net/caif/caif_dev.h
40
enum caif_protocol_type protocol;
include/net/cfg80211.h
5165
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
75
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
394
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
273
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
106
iphdr->protocol = iph->protocol;
include/net/ip_vs.h
1318
static inline void ip_vs_conn_fill_param(struct netns_ipvs *ipvs, int af, int protocol,
include/net/ip_vs.h
1327
p->protocol = protocol;
include/net/ip_vs.h
1540
ip_vs_service_find(struct netns_ipvs *ipvs, int af, __u32 fwmark, __u16 protocol,
include/net/ip_vs.h
1543
bool ip_vs_has_real_service(struct netns_ipvs *ipvs, int af, __u16 protocol,
include/net/ip_vs.h
1547
ip_vs_find_real_service(struct netns_ipvs *ipvs, int af, __u16 protocol,
include/net/ip_vs.h
1563
__u16 protocol, __u32 fwmark, __u32 flags);
include/net/ip_vs.h
479
u16 protocol;
include/net/ip_vs.h
54
__s16 protocol;
include/net/ip_vs.h
554
__u16 protocol;
include/net/ip_vs.h
574
__u16 protocol; /* Which protocol (TCP/UDP) */
include/net/ip_vs.h
635
u16 protocol;
include/net/ip_vs.h
681
__u16 protocol; /* which protocol (TCP/UDP) */
include/net/ip_vs.h
749
__u16 protocol; /* which protocol (TCP/UDP) */
include/net/ip_vs.h
810
__u16 protocol;
include/net/ip_vs.h
90
iphdr->protocol = ipv6_find_hdr(skb, &iphdr->len, -1,
include/net/ip_vs.h
93
if (iphdr->protocol < 0)
include/net/llc_pdu.h
350
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
324
u8 protocol, enum flow_offload_tuple_dir dir);
include/net/netfilter/nf_flow_table.h
327
u8 protocol, enum flow_offload_tuple_dir dir);
include/net/netfilter/nf_queue.h
56
(__force u32)iph->daddr, iph->protocol, initval);
include/net/netfilter/nf_queue.h
59
(__force u32)iph->saddr, iph->protocol, initval);
include/net/netfilter/nf_tables_ipv4.h
14
pkt->tprot = ip->protocol;
include/net/netfilter/nf_tables_ipv4.h
44
pkt->tprot = iph->protocol;
include/net/netfilter/nf_tables_ipv4.h
81
pkt->tprot = iph->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
758
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
432
__be16 protocol;
include/net/sock.h
1405
int sock_load_diag_module(int family, int protocol);
include/net/tcp.h
1962
__u8 protocol;
include/net/tcp.h
1970
__be32 protocol; /* including padding */
include/net/udp.h
363
(__force u32) skb->protocol);
include/net/vxlan.h
374
l4_hdr = ip_hdr(skb)->protocol;
include/net/xfrm.h
1817
int xfrm4_protocol_register(struct xfrm4_protocol *handler, unsigned char protocol);
include/net/xfrm.h
1818
int xfrm4_protocol_deregister(struct xfrm4_protocol *handler, unsigned char protocol);
include/net/xfrm.h
1832
int xfrm6_protocol_register(struct xfrm6_protocol *handler, unsigned char protocol);
include/net/xfrm.h
1833
int xfrm6_protocol_deregister(struct xfrm6_protocol *handler, unsigned char protocol);
include/net/xfrm.h
436
int (*callback)(struct sk_buff *skb, u8 protocol,
include/net/xfrm.h
783
u8 protocol;
include/rdma/ib_pack.h
224
u8 protocol;
include/rdma/ib_verbs.h
2073
__be16 protocol;
include/rdma/ib_verbs.h
2165
enum ib_uverbs_flow_action_esp_keymat protocol;
include/rdma/ib_verbs.h
2172
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
193
__field( u16, protocol )
include/trace/events/net.h
220
__entry->protocol = ntohs(skb->protocol);
include/trace/events/net.h
238
__entry->vlan_tci, __entry->protocol, __entry->ip_summed,
include/trace/events/net.h
27
__field( u16, protocol )
include/trace/events/net.h
48
__entry->protocol = ntohs(skb->protocol);
include/trace/events/net.h
67
__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
1956
const char *protocol,
include/trace/events/sunrpc.h
1962
TP_ARGS(program, protocol, sap, salen, xprt),
include/trace/events/sunrpc.h
1967
__string(protocol, protocol)
include/trace/events/sunrpc.h
1974
__assign_str(protocol);
include/trace/events/sunrpc.h
1979
__get_sockaddr(addr), __get_str(program), __get_str(protocol),
include/trace/events/sunrpc.h
2107
__string(protocol, xprt->xpt_class->xcl_name)
include/trace/events/sunrpc.h
2114
__assign_str(protocol);
include/trace/events/sunrpc.h
2120
__get_str(protocol), __get_str(service)
include/trace/events/sunrpc.h
2451
const unsigned short protocol,
include/trace/events/sunrpc.h
2456
TP_ARGS(program, version, family, protocol, port, error),
include/trace/events/sunrpc.h
2461
__field(unsigned short, protocol)
include/trace/events/sunrpc.h
2470
__entry->protocol = protocol;
include/trace/events/sunrpc.h
2478
__entry->protocol == IPPROTO_UDP ? "udp" : "tcp",
include/trace/events/sunrpc.h
2490
const unsigned short protocol, \
include/trace/events/sunrpc.h
2494
TP_ARGS(program, version, family, protocol, \
include/uapi/linux/bpf.h
6342
__u32 protocol;
include/uapi/linux/bpf.h
6445
__u32 protocol;
include/uapi/linux/bpf.h
6882
__u32 protocol; /* Allows 4-byte read, but no write */
include/uapi/linux/bpf.h
7539
__u32 protocol; /* IP protocol (IPPROTO_TCP, IPPROTO_UDP) */
include/uapi/linux/bsg.h
24
__u32 protocol; /* [i] 0 -> SCSI , .... */
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
1716
bctx->socket.protocol = sock->protocol;
io_uring/net.c
1728
sock->protocol = READ_ONCE(sqe->len);
io_uring/net.c
1752
file = __sys_socket_file(sock->domain, sock->type, sock->protocol);
io_uring/net.c
41
int protocol;
kernel/audit.c
2521
switch (ih->protocol) {
kernel/audit.c
2532
&ih->saddr, &ih->daddr, ih->protocol,
kernel/audit.c
2547
&ih->saddr, &ih->daddr, ih->protocol,
kernel/audit.c
2561
&ih->saddr, &ih->daddr, ih->protocol,
kernel/audit.c
2567
&ih->saddr, &ih->daddr, ih->protocol);
lib/test_bpf.c
14748
skb->protocol = htons(ETH_P_IP);
lib/test_bpf.c
15027
skb[i]->protocol = htons(ETH_P_IP);
lib/test_bpf.c
15081
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
530
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
139
__be16 protocol, u16 vlan_id,
net/8021q/vlan_dev.c
73
skb->protocol = vlan->vlan_proto;
net/appletalk/aarp.c
135
skb->protocol = htons(ETH_P_ATALK);
net/appletalk/aarp.c
182
skb->protocol = htons(ETH_P_ATALK);
net/appletalk/aarp.c
233
skb->protocol = htons(ETH_P_ATALK);
net/appletalk/aarp.c
579
skb->protocol = htons(ETH_P_PPPTALK);
net/appletalk/aarp.c
589
skb->protocol = htons(ETH_P_ATALK);
net/appletalk/ddp.c
1033
static int atalk_create(struct net *net, struct socket *sock, int protocol,
net/atm/br2684.c
229
unsigned short prot = ntohs(skb->protocol);
net/atm/br2684.c
458
skb->protocol = htons(ETH_P_IPV6);
net/atm/br2684.c
461
skb->protocol = htons(ETH_P_IP);
net/atm/br2684.c
475
skb->protocol = eth_type_trans(skb, net_dev);
net/atm/br2684.c
486
skb->protocol = htons(ETH_P_IP);
net/atm/br2684.c
488
skb->protocol = htons(ETH_P_IPV6);
net/atm/br2684.c
497
skb->protocol = eth_type_trans(skb, net_dev);
net/atm/br2684.c
502
if (unlikely(packet_fails_filter(skb->protocol, brvcc, skb)))
net/atm/br2684.c
507
pr_debug("received packet's protocol: %x\n", ntohs(skb->protocol));
net/atm/clip.c
233
skb->protocol = htons(ETH_P_IP);
net/atm/clip.c
235
skb->protocol = ((__be16 *)skb->data)[3];
net/atm/clip.c
237
if (skb->protocol == htons(ETH_P_ARP)) {
net/atm/clip.c
394
((__be16 *) here)[3] = skb->protocol;
net/atm/common.c
140
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/lec.c
678
skb->protocol = eth_type_trans(skb, dev);
net/atm/mpc.c
771
new_skb->protocol = eth_type_trans(new_skb, dev);
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/atm/svc.c
36
static int svc_create(struct net *net, struct socket *sock, int protocol,
net/atm/svc.c
660
static int svc_create(struct net *net, struct socket *sock, int protocol,
net/atm/svc.c
669
error = vcc_create(net, sock, protocol, AF_ATMSVC, kern);
net/ax25/af_ax25.c
843
static int ax25_create(struct net *net, struct socket *sock, int protocol,
net/ax25/af_ax25.c
849
if (protocol < 0 || protocol > U8_MAX)
net/ax25/af_ax25.c
857
if (protocol == 0 || protocol == PF_AX25)
net/ax25/af_ax25.c
858
protocol = AX25_P_TEXT;
net/ax25/af_ax25.c
862
switch (protocol) {
net/ax25/af_ax25.c
865
protocol = AX25_P_TEXT;
net/ax25/af_ax25.c
918
sk->sk_protocol = protocol;
net/ax25/ax25_ds_subr.c
141
skb->protocol = ax25_type_trans(skb, ax25_dev->dev);
net/ax25/ax25_iface.c
161
struct ax25_protocol *protocol;
net/ax25/ax25_iface.c
164
for (protocol = protocol_list; protocol != NULL; protocol = protocol->next)
net/ax25/ax25_iface.c
165
if (protocol->pid == pid) {
net/ax25/ax25_iface.c
166
res = protocol->func;
net/ax25/ax25_iface.c
202
struct ax25_protocol *protocol;
net/ax25/ax25_iface.c
206
for (protocol = protocol_list; protocol != NULL; protocol = protocol->next)
net/ax25/ax25_iface.c
207
if (protocol->pid == pid) {
net/ax25/ax25_iface.c
57
struct ax25_protocol *protocol;
net/ax25/ax25_iface.c
60
protocol = protocol_list;
net/ax25/ax25_iface.c
61
if (protocol == NULL)
net/ax25/ax25_iface.c
64
if (protocol->pid == pid) {
net/ax25/ax25_iface.c
65
protocol_list = protocol->next;
net/ax25/ax25_iface.c
69
while (protocol != NULL && protocol->next != NULL) {
net/ax25/ax25_iface.c
70
if (protocol->next->pid == pid) {
net/ax25/ax25_iface.c
71
protocol->next = protocol->next->next;
net/ax25/ax25_iface.c
75
protocol = protocol->next;
net/ax25/ax25_in.c
127
skb->protocol = htons(ETH_P_IP);
net/ax25/ax25_in.c
245
skb->protocol = htons(ETH_P_IP);
net/ax25/ax25_in.c
255
skb->protocol = htons(ETH_P_ARP);
net/ax25/ax25_out.c
372
skb->protocol = ax25_type_trans(skb, ax25_fwd_dev(dev));
net/batman-adv/bridge_loop_avoidance.c
442
skb->protocol = eth_type_trans(skb, mesh_iface);
net/batman-adv/distributed-arp-table.c
1193
skb_new->protocol = eth_type_trans(skb_new, mesh_iface);
net/batman-adv/distributed-arp-table.c
1435
if (iphdr->protocol != IPPROTO_UDP)
net/batman-adv/gateway_client.c
593
if (iphdr->protocol != IPPROTO_UDP)
net/batman-adv/mesh-interface.c
447
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
403
nskb->protocol = eth_type_trans(nskb, dev);
net/bluetooth/bnep/sock.c
198
static int bnep_sock_create(struct net *net, struct socket *sock, int protocol,
net/bluetooth/bnep/sock.c
208
sk = bt_sock_alloc(net, sock, &bnep_proto, protocol, GFP_ATOMIC, kern);
net/bluetooth/cmtp/sock.c
200
static int cmtp_sock_create(struct net *net, struct socket *sock, int protocol,
net/bluetooth/cmtp/sock.c
222
sk->sk_protocol = protocol;
net/bluetooth/hci_sock.c
2201
static int hci_sock_create(struct net *net, struct socket *sock, int protocol,
net/bluetooth/hci_sock.c
2213
sk = bt_sock_alloc(net, sock, &hci_sk_proto, protocol, GFP_ATOMIC,
net/bluetooth/hidp/sock.c
249
static int hidp_sock_create(struct net *net, struct socket *sock, int protocol,
net/bluetooth/hidp/sock.c
259
sk = bt_sock_alloc(net, sock, &hidp_proto, protocol, GFP_ATOMIC, kern);
net/bluetooth/iso.c
944
static int iso_sock_create(struct net *net, struct socket *sock, int protocol,
net/bluetooth/iso.c
958
sk = iso_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern);
net/bluetooth/l2cap_sock.c
1949
static int l2cap_sock_create(struct net *net, struct socket *sock, int protocol,
net/bluetooth/l2cap_sock.c
1967
sk = l2cap_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern);
net/bluetooth/rfcomm/sock.c
306
int protocol, int kern)
net/bluetooth/rfcomm/sock.c
319
sk = rfcomm_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern);
net/bluetooth/sco.c
602
static int sco_sock_create(struct net *net, struct socket *sock, int protocol,
net/bluetooth/sco.c
616
sk = sco_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern);
net/bpf/test_run.c
1118
skb->protocol = eth_type_trans(skb, dev);
net/bpf/test_run.c
1121
switch (skb->protocol) {
net/bpf/test_run.c
1552
ctx.protocol = (u16)user_ctx->protocol;
net/bpf/test_run.c
1774
skb->protocol = eth_type_trans(skb, dev);
net/bpf/test_run.c
1775
switch (skb->protocol) {
net/bpf/test_run.c
1793
skb->protocol = nfproto_eth(hook_state.pf);
net/bridge/br_arp_nd_proxy.c
277
reply->protocol = htons(ETH_P_IPV6);
net/bridge/br_arp_nd_proxy.c
307
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
1125
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
3860
if (ip_hdr(skb)->protocol != IPPROTO_IGMP ||
net/bridge/br_multicast.c
3887
if (ip_hdr(skb)->protocol == IPPROTO_PIM)
net/bridge/br_multicast.c
3895
br_multicast_err_count(brmctx->br, p, skb->protocol);
net/bridge/br_multicast.c
3961
br_multicast_err_count(brmctx->br, p, skb->protocol);
net/bridge/br_multicast.c
4028
switch (skb->protocol) {
net/bridge/br_multicast.c
5063
__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
124
return skb->protocol == htons(ETH_P_PPP_SES) &&
net/bridge/br_netfilter_hooks.c
133
return skb->protocol == htons(ETH_P_PPP_SES) &&
net/bridge/br_netfilter_hooks.c
174
switch (skb->protocol) {
net/bridge/br_netfilter_hooks.c
260
skb->protocol = htons(ETH_P_8021Q);
net/bridge/br_netfilter_hooks.c
263
skb->protocol = htons(ETH_P_PPP_SES);
net/bridge/br_netfilter_hooks.c
462
if (skb->protocol == htons(ETH_P_8021Q))
net/bridge/br_netfilter_hooks.c
464
else if (skb->protocol == htons(ETH_P_PPP_SES))
net/bridge/br_netfilter_hooks.c
531
skb->protocol = htons(ETH_P_IP);
net/bridge/br_netfilter_hooks.c
641
if (skb->protocol == htons(ETH_P_IP))
net/bridge/br_netfilter_hooks.c
644
if (skb->protocol == htons(ETH_P_IPV6))
net/bridge/br_netfilter_hooks.c
703
skb->protocol = htons(ETH_P_IP);
net/bridge/br_netfilter_hooks.c
708
skb->protocol = htons(ETH_P_IPV6);
net/bridge/br_netfilter_hooks.c
73
(!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IP))
net/bridge/br_netfilter_hooks.c
76
(!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IPV6))
net/bridge/br_netfilter_hooks.c
79
(!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_ARP))
net/bridge/br_netfilter_hooks.c
84
return skb->protocol;
net/bridge/br_netfilter_hooks.c
85
else if (skb->protocol == htons(ETH_P_8021Q))
net/bridge/br_netfilter_hooks.c
863
skb->protocol == htons(ETH_P_IP)) {
net/bridge/br_netfilter_hooks.c
892
skb->protocol == htons(ETH_P_IPV6)) {
net/bridge/br_netfilter_hooks.c
962
skb->protocol = htons(ETH_P_IP);
net/bridge/br_netfilter_hooks.c
964
skb->protocol = htons(ETH_P_IPV6);
net/bridge/br_netfilter_ipv6.c
181
skb->protocol = htons(ETH_P_IPV6);
net/bridge/br_private.h
1096
if (skb->protocol == htons(ETH_P_IPV6))
net/bridge/br_private.h
1108
if (skb->protocol == htons(ETH_P_IPV6))
net/bridge/br_private.h
1144
if (skb->protocol == htons(ETH_P_IP))
net/bridge/br_private.h
1146
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
552
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/caif/caif_dev.c
181
skb->protocol = htons(ETH_P_CAIF);
net/caif/caif_socket.c
1017
static int caif_create(struct net *net, struct socket *sock, int protocol,
net/caif/caif_socket.c
1044
if (protocol < 0 || protocol >= CAIFPROTO_MAX)
net/caif/caif_socket.c
1058
sk->sk_protocol = (unsigned char) protocol;
net/caif/caif_socket.c
1061
switch (protocol) {
net/caif/caif_socket.c
1092
cf_sk->conn_req.protocol = protocol;
net/caif/caif_usb.c
60
skb->protocol = htons(ETH_P_IP);
net/caif/cfcnfg.c
251
switch (s->protocol) {
net/caif/chnl_net.c
219
if (priv->conn_req.protocol == CAIFPROTO_DATAGRAM_LOOP)
net/caif/chnl_net.c
390
priv->conn_req.protocol = CAIFPROTO_DATAGRAM;
net/caif/chnl_net.c
411
loop = priv->conn_req.protocol == CAIFPROTO_DATAGRAM_LOOP;
net/caif/chnl_net.c
435
conn_req->protocol = CAIFPROTO_DATAGRAM_LOOP;
net/caif/chnl_net.c
437
conn_req->protocol = CAIFPROTO_DATAGRAM;
net/caif/chnl_net.c
461
caifdev->conn_req.protocol = CAIFPROTO_DATAGRAM_LOOP;
net/caif/chnl_net.c
85
skb->protocol = htons(ETH_P_IP);
net/caif/chnl_net.c
88
skb->protocol = htons(ETH_P_IPV6);
net/caif/chnl_net.c
97
if (priv->conn_req.protocol == CAIFPROTO_DATAGRAM_LOOP)
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
1806
.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
1735
.protocol = CAN_ISOTP,
net/can/j1939/socket.c
1402
.protocol = CAN_J1939,
net/can/raw.c
1095
.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 != 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
1203
ac->protocol = CEPH_AUTH_CEPHX;
net/core/dev.c
2443
skb->protocol = eth_type_trans(skb, dev);
net/core/dev.c
2589
ntohs(skb2->protocol),
net/core/dev.c
3665
__be16 type = skb->protocol;
net/core/dev.c
5497
skb->protocol = eth_type_trans(skb, skb->dev);
net/core/dev.c
5920
switch (skb->protocol) {
net/core/dev.c
6001
if (eth_type_vlan(skb->protocol)) {
net/core/dev.c
6091
} else if (eth_type_vlan(skb->protocol)) {
net/core/dev.c
6121
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
831
if (nla_put_u16(msg, NET_DM_ATTR_PROTO, be16_to_cpu(skb->protocol)))
net/core/filter.c
10188
case offsetof(struct bpf_sock, protocol):
net/core/filter.c
10507
case offsetof(struct bpf_sock_addr, protocol):
net/core/filter.c
11603
if (size < sizeof_field(struct sk_buff, protocol))
net/core/filter.c
11655
SK_REUSEPORT_LOAD_SKB_FIELD(protocol);
net/core/filter.c
11712
if (sk && sk->sk_protocol != ctx->protocol)
net/core/filter.c
11769
case bpf_ctx_range(struct bpf_sk_lookup, protocol):
net/core/filter.c
11817
case offsetof(struct bpf_sk_lookup, protocol):
net/core/filter.c
11820
protocol, 2, target_size));
net/core/filter.c
12249
switch (skb->protocol) {
net/core/filter.c
2385
.flowi4_proto = ip4h->protocol,
net/core/filter.c
2439
if (skb->protocol == htons(ETH_P_IP))
net/core/filter.c
2441
else if (skb->protocol == htons(ETH_P_IPV6))
net/core/filter.c
3262
skb->protocol = htons(proto);
net/core/filter.c
3404
__be16 from_proto = skb->protocol;
net/core/filter.c
3477
switch (skb->protocol) {
net/core/filter.c
3524
if (skb->protocol != htons(ETH_P_IP) &&
net/core/filter.c
3525
skb->protocol != htons(ETH_P_IPV6))
net/core/filter.c
3562
skb_set_inner_protocol(skb, skb->protocol);
net/core/filter.c
3586
if (skb->protocol == htons(ETH_P_IP) &&
net/core/filter.c
3589
else if (skb->protocol == htons(ETH_P_IPV6) &&
net/core/filter.c
3642
if (skb->protocol == htons(ETH_P_IP) &&
net/core/filter.c
3645
else if (skb->protocol == htons(ETH_P_IPV6) &&
net/core/filter.c
3713
__be16 proto = skb->protocol;
net/core/filter.c
374
BUILD_BUG_ON(sizeof_field(struct sk_buff, protocol) != 2);
net/core/filter.c
378
offsetof(struct sk_buff, protocol));
net/core/filter.c
6596
if (skb->protocol != htons(ETH_P_IPV6))
net/core/filter.c
7963
if (skb->protocol != htons(ETH_P_IP) &&
net/core/filter.c
7964
skb->protocol != htons(ETH_P_IPV6))
net/core/filter.c
9032
case offsetof(struct bpf_sock, protocol):
net/core/filter.c
9412
case bpf_ctx_range(struct bpf_sock_addr, protocol):
net/core/filter.c
9775
case offsetof(struct __sk_buff, protocol):
net/core/filter.c
9777
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
1211
ip_proto = iph->protocol;
net/core/flow_dissector.c
1305
proto = skb->protocol;
net/core/flow_dissector.c
679
*p_proto = hdr->protocol;
net/core/gro.c
256
__be16 type = skb->protocol;
net/core/gro.c
469
__be16 type = skb->protocol;
net/core/gro.c
699
skb->protocol = eth_type_trans(skb, skb->dev);
net/core/gro.c
758
skb->protocol = eth->h_proto;
net/core/lwt_bpf.c
104
} else if (skb->protocol == htons(ETH_P_IPV6)) {
net/core/lwt_bpf.c
188
if (skb->protocol == htons(ETH_P_IP))
net/core/lwt_bpf.c
190
else if (skb->protocol == htons(ETH_P_IPV6))
net/core/lwt_bpf.c
214
fl4.flowi4_proto = iph->protocol;
net/core/lwt_bpf.c
280
__be16 proto = skb->protocol;
net/core/lwt_bpf.c
290
if (skb->protocol != proto) {
net/core/lwt_bpf.c
544
__u8 protocol;
net/core/lwt_bpf.c
554
protocol = ip_hdr(skb)->protocol;
net/core/lwt_bpf.c
558
protocol = ipv6_hdr(skb)->nexthdr;
net/core/lwt_bpf.c
563
switch (protocol) {
net/core/lwt_bpf.c
630
skb_set_inner_protocol(skb, skb->protocol);
net/core/lwt_bpf.c
641
skb->protocol = htons(ETH_P_IP);
net/core/lwt_bpf.c
648
skb->protocol = htons(ETH_P_IPV6);
net/core/lwt_bpf.c
94
if (skb->protocol == htons(ETH_P_IP)) {
net/core/neighbour.c
1584
__be16 prot = n->tbl->protocol;
net/core/neighbour.c
1615
err = dev_hard_header(skb, dev, ntohs(skb->protocol),
net/core/neighbour.c
1644
err = dev_hard_header(skb, dev, ntohs(skb->protocol),
net/core/neighbour.c
2030
u8 protocol = 0;
net/core/neighbour.c
2082
protocol = nla_get_u8(tb[NDA_PROTOCOL]);
net/core/neighbour.c
2089
err = pneigh_create(tbl, net, dst, dev, ndm_flags, protocol,
net/core/neighbour.c
2176
if (protocol)
net/core/neighbour.c
2177
neigh->protocol = protocol;
net/core/neighbour.c
2696
if (neigh->protocol && nla_put_u8(skb, NDA_PROTOCOL, neigh->protocol))
net/core/neighbour.c
2730
u8 protocol;
net/core/neighbour.c
2752
protocol = READ_ONCE(pn->protocol);
net/core/neighbour.c
2753
if (protocol && nla_put_u8(skb, NDA_PROTOCOL, protocol))
net/core/neighbour.c
3235
err = dev_hard_header(skb, dev, ntohs(skb->protocol),
net/core/neighbour.c
785
u32 flags, u8 protocol, bool permanent)
net/core/neighbour.c
823
if (protocol)
net/core/neighbour.c
824
WRITE_ONCE(n->protocol, protocol);
net/core/net_test.c
23
skb->protocol = htons(ETH_P_ATALK);
net/core/netpoll.c
434
skb->protocol = htons(ETH_P_IPV6);
net/core/netpoll.c
456
iph->protocol = IPPROTO_UDP;
net/core/netpoll.c
461
skb->protocol = htons(ETH_P_IP);
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 *)ð[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 *) ð[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
7113
{.protocol = PF_BRIDGE, .msgtype = RTM_GETLINK,
net/core/rtnetlink.c
7115
{.protocol = PF_BRIDGE, .msgtype = RTM_DELLINK,
net/core/rtnetlink.c
7117
{.protocol = PF_BRIDGE, .msgtype = RTM_SETLINK,
net/core/rtnetlink.c
7119
{.protocol = PF_BRIDGE, .msgtype = RTM_NEWNEIGH, .doit = rtnl_fdb_add},
net/core/rtnetlink.c
7120
{.protocol = PF_BRIDGE, .msgtype = RTM_DELNEIGH, .doit = rtnl_fdb_del,
net/core/rtnetlink.c
7122
{.protocol = PF_BRIDGE, .msgtype = RTM_GETNEIGH, .doit = rtnl_fdb_get,
net/core/rtnetlink.c
7124
{.protocol = PF_BRIDGE, .msgtype = RTM_NEWMDB, .doit = rtnl_mdb_add},
net/core/rtnetlink.c
7125
{.protocol = PF_BRIDGE, .msgtype = RTM_DELMDB, .doit = rtnl_mdb_del,
net/core/rtnetlink.c
7127
{.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
1353
ntohs(skb->protocol), skb->pkt_type, skb->skb_iif,
net/core/skbuff.c
1573
CHECK_SKB_FIELD(protocol);
net/core/skbuff.c
5898
csum = skb_checksum_setup_ip(skb, ip_hdr(skb)->protocol, off);
net/core/skbuff.c
5906
ip_hdr(skb)->protocol, 0);
net/core/skbuff.c
6030
switch (skb->protocol) {
net/core/skbuff.c
6332
__vlan_hwaccel_put_tag(skb, skb->protocol, vlan_tci);
net/core/skbuff.c
6436
if (unlikely(!eth_type_vlan(skb->protocol)))
net/core/skbuff.c
6444
if (likely(!eth_type_vlan(skb->protocol)))
net/core/skbuff.c
6447
vlan_proto = skb->protocol;
net/core/skbuff.c
6477
skb->protocol = skb->vlan_proto;
net/core/skbuff.c
6546
eth->h_proto = skb->protocol;
net/core/skbuff.c
6601
skb_set_inner_protocol(skb, skb->protocol);
net/core/skbuff.c
6617
skb->protocol = mpls_proto;
net/core/skbuff.c
6640
if (unlikely(!eth_p_mpls(skb->protocol)))
net/core/skbuff.c
6662
skb->protocol = next_proto;
net/core/skbuff.c
6682
if (unlikely(!eth_p_mpls(skb->protocol)))
net/core/skbuff.c
6715
if (unlikely(!eth_p_mpls(skb->protocol)))
net/core/sock.c
4260
int sock_load_diag_module(int family, int protocol)
net/core/sock.c
4262
if (!protocol) {
net/core/sock.c
4272
protocol != IPPROTO_RAW &&
net/core/sock.c
4273
protocol < MAX_INET_PROTOS &&
net/core/sock.c
4274
!rcu_access_pointer(inet_protos[protocol]))
net/core/sock.c
4279
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
95
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
1382
if (cls->common.protocol != htons(ETH_P_ALL)) {
net/dsa/user.c
2300
u8 dscp = app->protocol;
net/dsa/user.c
2343
switch (app->protocol) {
net/dsa/user.c
2390
u8 dscp = app->protocol;
net/dsa/user.c
2425
switch (app->protocol) {
net/dsa/user.c
2453
.protocol = 0,
net/dsa/user.c
2466
int protocol;
net/dsa/user.c
2468
for (protocol = 0; protocol < 64; protocol++) {
net/dsa/user.c
2471
.protocol = protocol,
net/dsa/user.c
2475
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/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
1171
.protocol = IPPROTO_TCP,
net/ipv4/af_inet.c
1180
.protocol = IPPROTO_UDP,
net/ipv4/af_inet.c
1188
.protocol = IPPROTO_ICMP,
net/ipv4/af_inet.c
1196
.protocol = IPPROTO_IP, /* wild card */
net/ipv4/af_inet.c
1209
int protocol = p->protocol;
net/ipv4/af_inet.c
1224
if (protocol == answer->protocol)
net/ipv4/af_inet.c
1242
pr_err("Attempt to override permanent protocol %d\n", protocol);
net/ipv4/af_inet.c
1256
p->protocol);
net/ipv4/af_inet.c
1394
proto = iph->protocol;
net/ipv4/af_inet.c
1491
proto = iph->protocol;
net/ipv4/af_inet.c
1521
if ((iph->protocol ^ iph2->protocol) |
net/ipv4/af_inet.c
1605
int proto = iph->protocol;
net/ipv4/af_inet.c
1640
unsigned short type, unsigned char protocol,
net/ipv4/af_inet.c
1644
int rc = sock_create_kern(net, family, type, protocol, &sock);
net/ipv4/af_inet.c
260
static int inet_create(struct net *net, struct socket *sock, int protocol,
net/ipv4/af_inet.c
271
if (protocol < 0 || protocol >= IPPROTO_MAX)
net/ipv4/af_inet.c
284
if (protocol == answer->protocol) {
net/ipv4/af_inet.c
285
if (protocol != IPPROTO_IP)
net/ipv4/af_inet.c
289
if (IPPROTO_IP == protocol) {
net/ipv4/af_inet.c
290
protocol = answer->protocol;
net/ipv4/af_inet.c
293
if (IPPROTO_IP == answer->protocol)
net/ipv4/af_inet.c
308
PF_INET, protocol, sock->type);
net/ipv4/af_inet.c
315
PF_INET, protocol);
net/ipv4/af_inet.c
351
inet->inet_num = protocol;
net/ipv4/af_inet.c
352
if (IPPROTO_RAW == protocol)
net/ipv4/af_inet.c
366
sk->sk_protocol = protocol;
net/ipv4/arp.c
156
.protocol = cpu_to_be16(ETH_P_IP),
net/ipv4/arp.c
570
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
2885
{.protocol = PF_INET, .msgtype = RTM_NEWADDR, .doit = inet_rtm_newaddr,
net/ipv4/devinet.c
2887
{.protocol = PF_INET, .msgtype = RTM_DELADDR, .doit = inet_rtm_deladdr,
net/ipv4/devinet.c
2889
{.protocol = PF_INET, .msgtype = RTM_GETADDR, .dumpit = inet_dump_ifaddr,
net/ipv4/devinet.c
2891
{.protocol = PF_INET, .msgtype = RTM_GETNETCONF,
net/ipv4/devinet.c
2894
{.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
1008
if (filter->flags || filter->protocol || filter->rt_type ||
net/ipv4/fib_frontend.c
1695
{.protocol = PF_INET, .msgtype = RTM_NEWROUTE,
net/ipv4/fib_frontend.c
1697
{.protocol = PF_INET, .msgtype = RTM_DELROUTE,
net/ipv4/fib_frontend.c
1699
{.protocol = PF_INET, .msgtype = RTM_GETROUTE, .dumpit = inet_dump_fib,
net/ipv4/fib_frontend.c
974
filter->protocol = rtm->rtm_protocol;
net/ipv4/fib_semantics.c
316
static unsigned int fib_info_hashfn_1(int init_val, u8 protocol, u8 scope,
net/ipv4/fib_semantics.c
321
val ^= (protocol << 8) | scope;
net/ipv4/fib_trie.c
2275
if ((filter->protocol &&
net/ipv4/fib_trie.c
2276
fi->fib_protocol != filter->protocol))
net/ipv4/fou_core.c
1035
struct flowi4 *fl4, u8 *protocol, __be16 sport)
net/ipv4/fou_core.c
1050
*protocol = IPPROTO_UDP;
net/ipv4/fou_core.c
1054
u8 *protocol, struct flowi4 *fl4)
net/ipv4/fou_core.c
1061
err = __fou_build_header(skb, e, protocol, &sport, type);
net/ipv4/fou_core.c
1065
fou_build_udp(skb, e, fl4, protocol, sport);
net/ipv4/fou_core.c
1071
u8 *protocol, struct flowi4 *fl4)
net/ipv4/fou_core.c
1078
err = __gue_build_header(skb, e, protocol, &sport, type);
net/ipv4/fou_core.c
1082
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
609
fou->protocol = cfg->protocol;
net/ipv4/fou_core.c
697
cfg->protocol = nla_get_u8(info->attrs[FOU_ATTR_IPPROTO]);
net/ipv4/fou_core.c
787
nla_put_u8(msg, FOU_ATTR_IPPROTO, fou->protocol) ||
net/ipv4/fou_core.c
83
return -fou->protocol;
net/ipv4/fou_core.c
944
u8 *protocol, __be16 *sport, int type)
net/ipv4/fou_core.c
960
u8 *protocol, __be16 *sport, int type)
net/ipv4/fou_core.c
995
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
1057
int protocol = iph->protocol;
net/ipv4/icmp.c
1066
if (protocol == IPPROTO_RAW)
net/ipv4/icmp.c
1069
raw_icmp_error(skb, protocol, info);
net/ipv4/icmp.c
1071
ipprot = rcu_dereference(inet_protos[protocol]);
net/ipv4/icmp.c
1145
if (!icmp_tag_validation(iph->protocol))
net/ipv4/icmp.c
871
if (iph->protocol == IPPROTO_ICMP) {
net/ipv4/igmp.c
1714
if (ip_hdr(skb)->protocol != IPPROTO_IGMP)
net/ipv4/igmp.c
404
pip->protocol = IPPROTO_IGMP;
net/ipv4/igmp.c
785
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
404
int err, protocol;
net/ipv4/inet_diag.c
411
protocol = inet_diag_get_protocol(req, &dump_data);
net/ipv4/inet_diag.c
413
handler = inet_diag_lock_handler(protocol);
net/ipv4/inet_diag.c
810
int protocol, err = 0;
net/ipv4/inet_diag.c
812
protocol = inet_diag_get_protocol(r, cb_data);
net/ipv4/inet_diag.c
816
handler = inet_diag_lock_handler(protocol);
net/ipv4/inet_hashtables.c
441
int protocol,
net/ipv4/inet_hashtables.c
450
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
512
if (skb->protocol != htons(ETH_P_IP))
net/ipv4/ip_gre.c
1012
tunnel->parms.iph.protocol = IPPROTO_GRE;
net/ipv4/ip_gre.c
1191
parms->iph.protocol = IPPROTO_GRE;
net/ipv4/ip_gre.c
1358
tunnel->parms.iph.protocol = IPPROTO_GRE;
net/ipv4/ip_gre.c
490
ip_tunnel_xmit(skb, dev, tnl_params, tnl_params->protocol);
net/ipv4/ip_gre.c
584
if (skb->protocol == htons(ETH_P_IP) &&
net/ipv4/ip_gre.c
588
if (skb->protocol == htons(ETH_P_IPV6)) {
net/ipv4/ip_gre.c
661
gre_fb_xmit(skb, dev, skb->protocol);
net/ipv4/ip_gre.c
694
__gre_xmit(skb, dev, tnl_params, skb->protocol);
net/ipv4/ip_gre.c
831
if (p->iph.version != 4 || p->iph.protocol != IPPROTO_GRE ||
net/ipv4/ip_gre.c
907
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
341
switch (iph->protocol) {
net/ipv4/ip_output.c
118
skb->protocol = htons(ETH_P_IP);
net/ipv4/ip_output.c
1462
iph->protocol = sk->sk_protocol;
net/ipv4/ip_output.c
1484
if (iph->protocol == IPPROTO_ICMP) {
net/ipv4/ip_output.c
1640
RT_SCOPE_UNIVERSE, ip_hdr(skb)->protocol,
net/ipv4/ip_output.c
1652
sk->sk_protocol = ip_hdr(skb)->protocol;
net/ipv4/ip_output.c
170
iph->protocol = sk->sk_protocol;
net/ipv4/ip_output.c
377
skb->protocol = htons(ETH_P_IP);
net/ipv4/ip_output.c
436
skb->protocol = htons(ETH_P_IP);
net/ipv4/ip_output.c
517
iph->protocol = sk->sk_protocol;
net/ipv4/ip_output.c
556
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
762
ip_tunnel_init_flow(&fl4, protocol, dst, tnl_params->saddr,
net/ipv4/ip_tunnel.c
767
if (ip_tunnel_encap(skb, &tunnel->encap, &protocol, &fl4) < 0)
net/ipv4/ip_tunnel.c
845
iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, protocol, tos, ttl,
net/ipv4/ip_tunnel_core.c
1189
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
260
.protocol = IPPROTO_ICMP,
net/ipv4/ip_tunnel_core.c
295
if (iph->protocol == IPPROTO_ICMP && icmp_is_err(icmph->type))
net/ipv4/ip_tunnel_core.c
445
if (skb->protocol == htons(ETH_P_IP))
net/ipv4/ip_tunnel_core.c
449
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
557
nla_put_u8(skb, IFLA_IPTUN_PROTO, parm->iph.protocol) ||
net/ipv4/ipmr.c
1090
ip_hdr(skb)->protocol = 0;
net/ipv4/ipmr.c
1810
iph->protocol = IPPROTO_IPIP;
net/ipv4/ipmr.c
2180
} else if (ip_hdr(skb)->protocol == IPPROTO_IGMP) {
net/ipv4/ipmr.c
3289
{.protocol = RTNL_FAMILY_IPMR, .msgtype = RTM_GETLINK,
net/ipv4/ipmr.c
3291
{.protocol = RTNL_FAMILY_IPMR, .msgtype = RTM_NEWROUTE,
net/ipv4/ipmr.c
3293
{.protocol = RTNL_FAMILY_IPMR, .msgtype = RTM_DELROUTE,
net/ipv4/ipmr.c
3295
{.protocol = RTNL_FAMILY_IPMR, .msgtype = RTM_GETROUTE,
net/ipv4/ipmr.c
473
p.iph.protocol = IPPROTO_IPIP;
net/ipv4/ipmr.c
625
skb->protocol = htons(ETH_P_IP);
net/ipv4/ipmr_base.c
369
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
102
iph->protocol == IPPROTO_UDP ?
net/ipv4/netfilter/nf_socket_ipv4.c
107
protocol = iph->protocol;
net/ipv4/netfilter/nf_socket_ipv4.c
113
doff = iph->protocol == IPPROTO_TCP ?
net/ipv4/netfilter/nf_socket_ipv4.c
117
} else if (iph->protocol == IPPROTO_ICMP) {
net/ipv4/netfilter/nf_socket_ipv4.c
118
if (extract_icmp4_fields(skb, &protocol, &saddr, &daddr,
net/ipv4/netfilter/nf_socket_ipv4.c
132
((iph->protocol != IPPROTO_ICMP &&
net/ipv4/netfilter/nf_socket_ipv4.c
134
(iph->protocol == IPPROTO_ICMP &&
net/ipv4/netfilter/nf_socket_ipv4.c
139
dport = (iph->protocol == IPPROTO_TCP) ?
net/ipv4/netfilter/nf_socket_ipv4.c
145
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_socket_ipv4.c
97
if (iph->protocol == IPPROTO_UDP || iph->protocol == IPPROTO_TCP) {
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
2450
old_protocol = old->protocol;
net/ipv4/nexthop.c
2453
old->protocol = new->protocol;
net/ipv4/nexthop.c
2488
old->protocol = old_protocol;
net/ipv4/nexthop.c
2990
nh->protocol = cfg->nh_protocol;
net/ipv4/nexthop.c
4157
{.protocol = PF_INET, .msgtype = RTM_NEWNEXTHOP,
net/ipv4/nexthop.c
4159
{.protocol = PF_INET, .msgtype = RTM_GETNEXTHOP,
net/ipv4/nexthop.c
4161
{.protocol = PF_INET6, .msgtype = RTM_NEWNEXTHOP,
net/ipv4/nexthop.c
4163
{.protocol = PF_INET6, .msgtype = RTM_GETNEXTHOP,
net/ipv4/nexthop.c
931
nhm->nh_protocol = nh->protocol;
net/ipv4/ping.c
167
if (skb->protocol == htons(ETH_P_IP)) {
net/ipv4/ping.c
173
} else if (skb->protocol == htons(ETH_P_IPV6)) {
net/ipv4/ping.c
195
if (skb->protocol == htons(ETH_P_IP) &&
net/ipv4/ping.c
206
} else if (skb->protocol == htons(ETH_P_IPV6) &&
net/ipv4/ping.c
502
if (skb->protocol == htons(ETH_P_IP)) {
net/ipv4/ping.c
507
} else if (skb->protocol == htons(ETH_P_IPV6)) {
net/ipv4/ping.c
522
skb->protocol, type, code, ntohs(icmph->un.echo.id),
net/ipv4/ping.c
536
if (skb->protocol == htons(ETH_P_IP)) {
net/ipv4/ping.c
575
} else if (skb->protocol == htons(ETH_P_IPV6)) {
net/ipv4/ping.c
921
if (skb->protocol == htons(ETH_P_IPV6) &&
net/ipv4/ping.c
924
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
175
if (!raw_v4_match(net, sk, iph->protocol,
net/ipv4/raw.c
186
if ((iph->protocol != IPPROTO_ICMP || !icmp_filter(sk, skb)) &&
net/ipv4/raw.c
200
int raw_local_deliver(struct sk_buff *skb, int protocol)
net/ipv4/raw.c
205
raw_hashfunc(net, protocol));
net/ipv4/raw.c
272
void raw_icmp_error(struct sk_buff *skb, int protocol, u32 info)
net/ipv4/raw.c
282
hash = raw_hashfunc(net, protocol);
net/ipv4/raw.c
288
if (!raw_v4_match(net, sk, iph->protocol,
net/ipv4/raw.c
360
skb->protocol = htons(ETH_P_IP);
net/ipv4/raw.c
406
if (iph->protocol == IPPROTO_ICMP &&
net/ipv4/raw.c
544
ipc.protocol = IPPROTO_RAW;
net/ipv4/raw.c
611
hdrincl ? ipc.protocol : sk->sk_protocol,
net/ipv4/route.c
1087
int oif, u8 protocol)
net/ipv4/route.c
1094
__build_flow_key(net, &fl4, NULL, iph, oif, iph->tos, protocol, mark,
net/ipv4/route.c
1177
int oif, u8 protocol)
net/ipv4/route.c
1183
__build_flow_key(net, &fl4, NULL, iph, oif, iph->tos, protocol, 0, 0);
net/ipv4/route.c
1721
if (skb->protocol != htons(ETH_P_IP))
net/ipv4/route.c
1729
ip_hdr(skb)->protocol != IPPROTO_IGMP)
net/ipv4/route.c
1845
skb->protocol == htons(ETH_P_IP)) {
net/ipv4/route.c
1854
if (skb->protocol != htons(ETH_P_IP)) {
net/ipv4/route.c
1920
if (likely(outer_iph->protocol != IPPROTO_ICMP))
net/ipv4/route.c
2398
if (skb->protocol != htons(ETH_P_IP)) {
net/ipv4/route.c
2518
ip_hdr(skb)->protocol);
net/ipv4/route.c
2527
ip_hdr(skb)->protocol);
net/ipv4/route.c
3176
skb->protocol = htons(ETH_P_IP);
net/ipv4/route.c
3178
iph->protocol = ip_proto;
net/ipv4/route.c
3186
switch (iph->protocol) {
net/ipv4/route.c
3718
{.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
4435
if (skb->protocol == htons(ETH_P_IP))
net/ipv4/tcp.c
4437
else if (skb->protocol == htons(ETH_P_IPV6))
net/ipv4/tcp_ao.c
449
bp->protocol = IPPROTO_TCP;
net/ipv4/tcp_input.c
1001
if (skb->protocol == htons(ETH_P_IPV6))
net/ipv4/tcp_input.c
5073
skb->protocol == htons(ETH_P_IPV6) &&
net/ipv4/tcp_ipv4.c
1583
h.ip.protocol = IPPROTO_TCP;
net/ipv4/udp.c
1802
if (skb->protocol == htons(ETH_P_IP))
net/ipv4/udp.c
2891
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/udplite.c
75
.protocol = IPPROTO_UDPLITE,
net/ipv4/xfrm4_input.c
229
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
2953
p.iph.protocol = IPPROTO_IPV6;
net/ipv6/addrconf.c
7512
{.owner = THIS_MODULE, .protocol = PF_INET6, .msgtype = RTM_GETLINK,
net/ipv6/addrconf.c
7514
{.owner = THIS_MODULE, .protocol = PF_INET6, .msgtype = RTM_NEWADDR,
net/ipv6/addrconf.c
7516
{.owner = THIS_MODULE, .protocol = PF_INET6, .msgtype = RTM_DELADDR,
net/ipv6/addrconf.c
7518
{.owner = THIS_MODULE, .protocol = PF_INET6, .msgtype = RTM_GETADDR,
net/ipv6/addrconf.c
7521
{.owner = THIS_MODULE, .protocol = PF_INET6, .msgtype = RTM_GETMULTICAST,
net/ipv6/addrconf.c
7524
{.owner = THIS_MODULE, .protocol = PF_INET6, .msgtype = RTM_GETANYCAST,
net/ipv6/addrconf.c
7527
{.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
112
static int inet6_create(struct net *net, struct socket *sock, int protocol,
net/ipv6/af_inet6.c
124
if (protocol < 0 || protocol >= IPPROTO_MAX)
net/ipv6/af_inet6.c
135
if (protocol == answer->protocol) {
net/ipv6/af_inet6.c
136
if (protocol != IPPROTO_IP)
net/ipv6/af_inet6.c
140
if (IPPROTO_IP == protocol) {
net/ipv6/af_inet6.c
141
protocol = answer->protocol;
net/ipv6/af_inet6.c
144
if (IPPROTO_IP == answer->protocol)
net/ipv6/af_inet6.c
159
PF_INET6, protocol, sock->type);
net/ipv6/af_inet6.c
166
PF_INET6, protocol);
net/ipv6/af_inet6.c
202
inet->inet_num = protocol;
net/ipv6/af_inet6.c
203
if (IPPROTO_RAW == protocol)
net/ipv6/af_inet6.c
209
sk->sk_protocol = protocol;
net/ipv6/af_inet6.c
749
int protocol = p->protocol;
net/ipv6/af_inet6.c
767
if (protocol == answer->protocol)
net/ipv6/af_inet6.c
790
pr_err("Attempt to override permanent protocol %d\n", protocol);
net/ipv6/af_inet6.c
805
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
600
bool is_ipv6 = skb->protocol == htons(ETH_P_IPV6);
net/ipv6/exthdrs.c
417
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
178
int protocol,
net/ipv6/inet6_hashtables.c
189
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
2568
{.owner = THIS_MODULE, .protocol = PF_INET6, .msgtype = RTM_GETROUTE,
net/ipv6/ip6_gre.c
1016
switch (skb->protocol) {
net/ipv6/ip6_gre.c
1068
if (skb->protocol == htons(ETH_P_IP))
net/ipv6/ip6_gre.c
724
__be16 protocol;
net/ipv6/ip6_gre.c
735
protocol = (dev->type == ARPHRD_ETHER) ? htons(ETH_P_TEB) : proto;
net/ipv6/ip6_gre.c
767
flags, protocol,
net/ipv6/ip6_gre.c
780
protocol, tunnel->parms.o_key,
net/ipv6/ip6_gre.c
811
skb->protocol);
net/ipv6/ip6_gre.c
845
&mtu, skb->protocol);
net/ipv6/ip6_gre.c
872
err = __gre6_xmit(skb, dev, dsfield, &fl6, encap_limit, &mtu, skb->protocol);
net/ipv6/ip6_gre.c
948
if (skb->protocol == htons(ETH_P_IP) &&
net/ipv6/ip6_gre.c
952
if (skb->protocol == htons(ETH_P_IPV6)) {
net/ipv6/ip6_output.c
1679
skb->protocol = htons(ETH_P_IPV6);
net/ipv6/ip6_output.c
233
skb->protocol = htons(ETH_P_IPV6);
net/ipv6/ip6_output.c
338
skb->protocol = htons(ETH_P_IPV6);
net/ipv6/ip6_output.c
682
to->protocol = from->protocol;
net/ipv6/ip6_tunnel.c
1200
mtu = max(mtu, skb->protocol == htons(ETH_P_IPV6) ?
net/ipv6/ip6_tunnel.c
1298
u8 protocol)
net/ipv6/ip6_tunnel.c
1312
if (tproto != protocol && tproto != 0)
net/ipv6/ip6_tunnel.c
1325
fl6.flowi6_proto = protocol;
net/ipv6/ip6_tunnel.c
1330
switch (protocol) {
net/ipv6/ip6_tunnel.c
1346
if (protocol == IPPROTO_IPV6) {
net/ipv6/ip6_tunnel.c
1366
fl6.flowi6_proto = protocol;
net/ipv6/ip6_tunnel.c
1372
switch (protocol) {
net/ipv6/ip6_tunnel.c
1403
skb_set_inner_ipproto(skb, protocol);
net/ipv6/ip6_tunnel.c
1406
protocol);
net/ipv6/ip6_tunnel.c
1410
switch (protocol) {
net/ipv6/ip6_tunnel.c
1437
switch (skb->protocol) {
net/ipv6/ip6_tunnel.c
827
skb->protocol = tpi->proto;
net/ipv6/ip6_tunnel.c
837
skb->protocol = eth_type_trans(skb, tunnel->dev);
net/ipv6/ip6_vti.c
368
inner_mode = xfrm_ip2inner_mode(x, XFRM_MODE_SKB_CB(skb)->protocol);
net/ipv6/ip6_vti.c
452
switch (skb->protocol) {
net/ipv6/ip6_vti.c
513
if (skb->protocol == htons(ETH_P_IPV6)) {
net/ipv6/ip6_vti.c
560
switch (skb->protocol) {
net/ipv6/ip6_vti.c
605
int protocol = iph->nexthdr;
net/ipv6/ip6_vti.c
613
switch (protocol) {
net/ipv6/ip6_vti.c
635
spi, protocol, AF_INET6);
net/ipv6/ip6mr.c
1389
{.owner = THIS_MODULE, .protocol = RTNL_FAMILY_IP6MR,
net/ipv6/ip6mr.c
593
skb->protocol = htons(ETH_P_IPV6);
net/ipv6/mcast.c
1739
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
138
skb->protocol = htons(ETH_P_IPV6);
net/ipv6/ping.c
221
.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
1301
.protocol = IPPROTO_IP, /* wild card */
net/ipv6/raw.c
622
skb->protocol = htons(ETH_P_IPV6);
net/ipv6/route.c
6069
(filter->protocol && rt->fib6_protocol != filter->protocol))) {
net/ipv6/route.c
6866
{.owner = THIS_MODULE, .protocol = PF_INET6, .msgtype = RTM_NEWROUTE,
net/ipv6/route.c
6868
{.owner = THIS_MODULE, .protocol = PF_INET6, .msgtype = RTM_DELROUTE,
net/ipv6/route.c
6870
{.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
122
} else if (!do_flowlabel && skb->protocol == htons(ETH_P_IPV6)) {
net/ipv6/seg6_iptunnel.c
159
if (skb->protocol == htons(ETH_P_IPV6)) {
net/ipv6/seg6_iptunnel.c
256
if (skb->protocol == htons(ETH_P_IPV6)) {
net/ipv6/seg6_iptunnel.c
393
if (skb->protocol != htons(ETH_P_IPV6))
net/ipv6/seg6_iptunnel.c
406
if (skb->protocol == htons(ETH_P_IPV6))
net/ipv6/seg6_iptunnel.c
408
else if (skb->protocol == htons(ETH_P_IP))
net/ipv6/seg6_iptunnel.c
424
skb_set_inner_protocol(skb, skb->protocol);
net/ipv6/seg6_iptunnel.c
425
skb->protocol = htons(ETH_P_IPV6);
net/ipv6/seg6_iptunnel.c
450
skb->protocol = htons(ETH_P_IPV6);
net/ipv6/seg6_iptunnel.c
537
switch (skb->protocol) {
net/ipv6/seg6_iptunnel.c
622
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
1022
if (ip_tunnel_encap(skb, &tunnel->encap, &protocol, &fl4) < 0) {
net/ipv6/sit.c
1029
iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, protocol, tos, ttl,
net/ipv6/sit.c
1066
switch (skb->protocol) {
net/ipv6/sit.c
1255
if (!ipip6_valid_ip_proto(p->iph.protocol))
net/ipv6/sit.c
1466
iph->protocol = IPPROTO_IPV6;
net/ipv6/sit.c
1495
parms->iph.protocol = IPPROTO_IPV6;
net/ipv6/sit.c
1699
nla_put_u8(skb, IFLA_IPTUN_PROTO, parm->iph.protocol) ||
net/ipv6/sit.c
575
t->parms.link, iph->protocol);
net/ipv6/sit.c
581
iph->protocol);
net/ipv6/sit.c
690
if (tunnel->parms.iph.protocol != IPPROTO_IPV6 &&
net/ipv6/sit.c
691
tunnel->parms.iph.protocol != 0)
net/ipv6/sit.c
766
if (tunnel->parms.iph.protocol != ipproto &&
net/ipv6/sit.c
767
tunnel->parms.iph.protocol != 0)
net/ipv6/sit.c
914
u8 protocol = IPPROTO_IPV6;
net/ipv6/tcp_ao.c
127
bp->protocol = cpu_to_be32(IPPROTO_TCP);
net/ipv6/tcp_ipv6.c
1284
if (skb->protocol == htons(ETH_P_IP))
net/ipv6/tcp_ipv6.c
1370
if (skb->protocol == htons(ETH_P_IP))
net/ipv6/tcp_ipv6.c
1548
if (skb->protocol == htons(ETH_P_IP))
net/ipv6/tcp_ipv6.c
2335
.protocol = IPPROTO_TCP,
net/ipv6/tcp_ipv6.c
706
h.ip.protocol = cpu_to_be32(IPPROTO_TCP);
net/ipv6/udp.c
1943
.protocol = IPPROTO_UDP,
net/ipv6/udp.c
499
is_udp4 = (skb->protocol == htons(ETH_P_IP));
net/ipv6/udplite.c
74
.protocol = IPPROTO_UDPLITE,
net/ipv6/xfrm6_input.c
163
if (skb->protocol == htons(ETH_P_IP))
net/ipv6/xfrm6_input.c
189
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
219
static inline const struct inet6_protocol *netproto(unsigned char protocol)
net/ipv6/xfrm6_protocol.c
221
switch (protocol) {
net/ipv6/xfrm6_protocol.c
234
unsigned char protocol)
net/ipv6/xfrm6_protocol.c
242
if (!proto_handlers(protocol) || !netproto(protocol))
net/ipv6/xfrm6_protocol.c
247
if (!rcu_dereference_protected(*proto_handlers(protocol),
net/ipv6/xfrm6_protocol.c
251
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
270
if (inet6_add_protocol(netproto(protocol), protocol)) {
net/ipv6/xfrm6_protocol.c
281
unsigned char protocol)
net/ipv6/xfrm6_protocol.c
287
if (!proto_handlers(protocol) || !netproto(protocol))
net/ipv6/xfrm6_protocol.c
29
switch (protocol) {
net/ipv6/xfrm6_protocol.c
292
for (pprev = proto_handlers(protocol);
net/ipv6/xfrm6_protocol.c
303
if (!rcu_dereference_protected(*proto_handlers(protocol),
net/ipv6/xfrm6_protocol.c
305
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
2232
static int iucv_sock_create(struct net *net, struct socket *sock, int protocol,
net/iucv/af_iucv.c
2237
if (protocol && protocol != PF_IUCV)
net/iucv/af_iucv.c
2252
sk = iucv_sock_alloc(sock, protocol, GFP_KERNEL, kern);
net/iucv/af_iucv.c
248
skb->protocol = cpu_to_be16(ETH_P_AF_IUCV);
net/kcm/kcmsock.c
1789
int protocol, int kern)
net/kcm/kcmsock.c
1806
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
171
static int llc_ui_create(struct net *net, struct socket *sock, int protocol,
net/llc/af_llc.c
981
skb->protocol = llc_proto_type(addr->sllc_arphrd);
net/llc/llc_input.c
129
if (skb->protocol == htons(ETH_P_802_2)) {
net/llc/llc_sap.c
62
skb->protocol = htons(ETH_P_802_2);
net/mac80211/iface.c
1799
if (skb->protocol == cpu_to_be16(ETH_P_TDLS))
net/mac80211/rx.c
260
skb->protocol = 0;
net/mac80211/rx.c
2723
if (unlikely((skb->protocol == sdata->control_port_protocol ||
net/mac80211/rx.c
2724
(skb->protocol == cpu_to_be16(ETH_P_PREAUTH) &&
net/mac80211/rx.c
2752
if (unlikely(skb->protocol == sdata->control_port_protocol &&
net/mac80211/rx.c
2850
skb->protocol = eth_type_trans(skb, dev);
net/mac80211/rx.c
2861
xmit_skb->protocol = htons(ETH_P_802_3);
net/mac80211/rx.c
2916
&skb->protocol))
net/mac80211/rx.c
2919
skb->protocol = htons(skb->len - hdrlen);
net/mac80211/rx.c
3072
&fwd_skb->protocol))
net/mac80211/rx.c
3075
fwd_skb->protocol = htons(fwd_skb->len - hdrlen);
net/mac80211/rx.c
3311
rx->skb->protocol = cpu_to_be16(ETH_P_TDLS);
net/mac80211/rx.c
4910
xmit_skb->protocol = htons(ETH_P_802_3);
net/mac80211/rx.c
4921
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
647
if (skb->protocol == sdata->control_port_protocol ||
net/mac80211/status.c
648
skb->protocol == cpu_to_be16(ETH_P_PREAUTH))
net/mac80211/status.c
937
skb->protocol = htons(ETH_P_802_2);
net/mac80211/tx.c
1195
skb->protocol == sdata->control_port_protocol)
net/mac80211/tx.c
1244
} else if (tx->sdata->control_port_protocol == tx->skb->protocol) {
net/mac80211/tx.c
2365
skb->protocol = cpu_to_be16((payload[6] << 8) |
net/mac80211/tx.c
4337
if (skb->protocol == sdata->control_port_protocol)
net/mac80211/tx.c
556
if (unlikely(tx->sdata->control_port_protocol == tx->skb->protocol)) {
net/mac80211/tx.c
6397
skb->protocol = proto;
net/mac80211/tx.c
6455
skb->protocol = htons(ETH_P_802_3);
net/mac80211/tx.c
663
tx->skb->protocol != tx->sdata->control_port_protocol)
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
1057
skb2->protocol = skb->protocol;
net/mctp/route.c
1160
skb->protocol = htons(ETH_P_MCTP);
net/mctp/route.c
627
skb->protocol = htons(ETH_P_MCTP);
net/mctp/route.c
650
rc = dev_hard_header(skb, skb->dev, ntohs(skb->protocol),
net/mpls/af_mpls.c
161
if (skb->protocol == htons(ETH_P_MPLS_UC)) {
net/mpls/af_mpls.c
167
} else if (skb->protocol == htons(ETH_P_IP)) {
net/mpls/af_mpls.c
170
} else if (skb->protocol == htons(ETH_P_IPV6)) {
net/mpls/af_mpls.c
2179
filter->protocol = rtm->rtm_protocol;
net/mpls/af_mpls.c
2272
(filter.protocol && rt->rt_protocol != filter.protocol))
net/mpls/af_mpls.c
229
v4hdr->protocol, hash);
net/mpls/af_mpls.c
2496
skb->protocol = htons(ETH_P_MPLS_UC);
net/mpls/af_mpls.c
321
skb->protocol = htons(ETH_P_IP);
net/mpls/af_mpls.c
343
skb->protocol = htons(ETH_P_IPV6);
net/mpls/af_mpls.c
456
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
4545
.protocol = IPPROTO_MPTCP,
net/mptcp/protocol.c
4653
.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
378
.protocol = IPSET_PROTOCOL,
net/netfilter/ipset/ip_set_bitmap_port.c
289
.protocol = IPSET_PROTOCOL,
net/netfilter/ipset/ip_set_core.c
1934
if (nla_put_u8(skb2, IPSET_ATTR_PROTOCOL, protocol(attr)) ||
net/netfilter/ipset/ip_set_core.c
1988
if (nla_put_u8(skb2, IPSET_ATTR_PROTOCOL, protocol(attr)) ||
net/netfilter/ipset/ip_set_core.c
2072
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
2120
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
265
.protocol = IPSET_PROTOCOL,
net/netfilter/ipset/ip_set_hash_ipmark.c
281
.protocol = IPSET_PROTOCOL,
net/netfilter/ipset/ip_set_hash_ipport.c
363
.protocol = IPSET_PROTOCOL,
net/netfilter/ipset/ip_set_hash_ipportip.c
358
.protocol = IPSET_PROTOCOL,
net/netfilter/ipset/ip_set_hash_ipportnet.c
516
.protocol = IPSET_PROTOCOL,
net/netfilter/ipset/ip_set_hash_mac.c
122
.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
423
if (cp->protocol == IPPROTO_TCP)
net/netfilter/ipvs/ip_vs_app.c
500
if (cp->protocol == IPPROTO_TCP)
net/netfilter/ipvs/ip_vs_app.c
582
ip_vs_proto_name(inc->protocol),
net/netfilter/ipvs/ip_vs_conn.c
1161
ip_vs_proto_name(cp->protocol),
net/netfilter/ipvs/ip_vs_conn.c
1174
ip_vs_proto_name(cp->protocol),
net/netfilter/ipvs/ip_vs_conn.c
1227
ip_vs_proto_name(cp->protocol),
net/netfilter/ipvs/ip_vs_conn.c
1240
ip_vs_proto_name(cp->protocol),
net/netfilter/ipvs/ip_vs_conn.c
1331
if (cp->protocol == IPPROTO_TCP) {
net/netfilter/ipvs/ip_vs_conn.c
1345
} else if (cp->protocol == IPPROTO_SCTP) {
net/netfilter/ipvs/ip_vs_conn.c
139
return ip_vs_conn_hashkey(p->ipvs, p->af, p->protocol, addr, port);
net/netfilter/ipvs/ip_vs_conn.c
146
ip_vs_conn_fill_param(cp->ipvs, cp->af, cp->protocol,
net/netfilter/ipvs/ip_vs_conn.c
277
p->protocol == cp->protocol &&
net/netfilter/ipvs/ip_vs_conn.c
304
ip_vs_proto_name(p->protocol),
net/netfilter/ipvs/ip_vs_conn.c
325
ip_vs_conn_fill_param(ipvs, af, iph->protocol, &iph->saddr,
net/netfilter/ipvs/ip_vs_conn.c
328
ip_vs_conn_fill_param(ipvs, af, iph->protocol, &iph->daddr,
net/netfilter/ipvs/ip_vs_conn.c
372
ip_vs_addr_equal(p->protocol == IPPROTO_IP ? AF_UNSPEC :
net/netfilter/ipvs/ip_vs_conn.c
376
p->protocol == cp->protocol &&
net/netfilter/ipvs/ip_vs_conn.c
388
ip_vs_proto_name(p->protocol),
net/netfilter/ipvs/ip_vs_conn.c
429
p->protocol == cp->protocol &&
net/netfilter/ipvs/ip_vs_conn.c
442
ip_vs_proto_name(p->protocol),
net/netfilter/ipvs/ip_vs_conn.c
596
if (cp->protocol != IPPROTO_UDP)
net/netfilter/ipvs/ip_vs_conn.c
616
ip_vs_proto_name(cp->protocol),
net/netfilter/ipvs/ip_vs_conn.c
663
cp->protocol, cp->fwmark, cp->flags);
net/netfilter/ipvs/ip_vs_conn.c
691
pd = ip_vs_proto_data_get(cp->ipvs, cp->protocol);
net/netfilter/ipvs/ip_vs_conn.c
713
ip_vs_proto_name(cp->protocol),
net/netfilter/ipvs/ip_vs_conn.c
781
ip_vs_proto_name(ct->protocol),
net/netfilter/ipvs/ip_vs_conn.c
947
p->protocol);
net/netfilter/ipvs/ip_vs_conn.c
960
cp->protocol = p->protocol;
net/netfilter/ipvs/ip_vs_conn.c
964
ip_vs_addr_set(p->protocol == IPPROTO_IP ? AF_UNSPEC : p->af,
net/netfilter/ipvs/ip_vs_core.c
1030
pp = ip_vs_proto_get(ciph.protocol);
net/netfilter/ipvs/ip_vs_core.c
1042
return handle_response_icmp(AF_INET6, skb, &snet, ciph.protocol, cp,
net/netfilter/ipvs/ip_vs_core.c
1076
switch (iph->protocol) {
net/netfilter/ipvs/ip_vs_core.c
1106
switch (cp->protocol) {
net/netfilter/ipvs/ip_vs_core.c
1164
if (ip_vs_conn_fill_param_persist(svc, skb, iph->protocol,
net/netfilter/ipvs/ip_vs_core.c
1185
iph->protocol == IPPROTO_UDP) ? IP_VS_CONN_F_ONE_PACKET : 0;
net/netfilter/ipvs/ip_vs_core.c
1187
ip_vs_conn_fill_param(svc->ipvs, svc->af, iph->protocol,
net/netfilter/ipvs/ip_vs_core.c
1236
dest = ip_vs_find_real_service(ipvs, af, iph->protocol,
net/netfilter/ipvs/ip_vs_core.c
1358
if (unlikely(iph.protocol == IPPROTO_ICMPV6)) {
net/netfilter/ipvs/ip_vs_core.c
1368
if (unlikely(iph.protocol == IPPROTO_ICMP)) {
net/netfilter/ipvs/ip_vs_core.c
1376
pd = ip_vs_proto_data_get(ipvs, iph.protocol);
net/netfilter/ipvs/ip_vs_core.c
1409
if (pp->protocol == IPPROTO_UDP) {
net/netfilter/ipvs/ip_vs_core.c
1418
(pp->protocol == IPPROTO_TCP ||
net/netfilter/ipvs/ip_vs_core.c
1419
pp->protocol == IPPROTO_UDP ||
net/netfilter/ipvs/ip_vs_core.c
1420
pp->protocol == IPPROTO_SCTP)) {
net/netfilter/ipvs/ip_vs_core.c
1427
if (ip_vs_has_real_service(ipvs, af, iph.protocol, &iph.saddr,
net/netfilter/ipvs/ip_vs_core.c
1434
if ((iph.protocol != IPPROTO_TCP &&
net/netfilter/ipvs/ip_vs_core.c
1435
iph.protocol != IPPROTO_SCTP)
net/netfilter/ipvs/ip_vs_core.c
1436
|| ((iph.protocol == IPPROTO_TCP
net/netfilter/ipvs/ip_vs_core.c
1438
|| (iph.protocol == IPPROTO_SCTP
net/netfilter/ipvs/ip_vs_core.c
1555
type = greh->protocol;
net/netfilter/ipvs/ip_vs_core.c
1633
if (cih->protocol == IPPROTO_IPIP) {
net/netfilter/ipvs/ip_vs_core.c
1650
} else if ((cih->protocol == IPPROTO_UDP || /* Can be UDP encap */
net/netfilter/ipvs/ip_vs_core.c
1651
cih->protocol == IPPROTO_GRE) && /* Can be GRE encap */
net/netfilter/ipvs/ip_vs_core.c
1661
if (cih->protocol == IPPROTO_UDP) {
net/netfilter/ipvs/ip_vs_core.c
1684
pd = ip_vs_proto_data_get(ipvs, cih->protocol);
net/netfilter/ipvs/ip_vs_core.c
1785
if (IPPROTO_TCP == cih->protocol || IPPROTO_UDP == cih->protocol ||
net/netfilter/ipvs/ip_vs_core.c
1786
IPPROTO_SCTP == cih->protocol)
net/netfilter/ipvs/ip_vs_core.c
1843
pd = ip_vs_proto_data_get(ipvs, ciph.protocol);
net/netfilter/ipvs/ip_vs_core.c
1885
if (IPPROTO_TCP == ciph.protocol || IPPROTO_UDP == ciph.protocol ||
net/netfilter/ipvs/ip_vs_core.c
1886
IPPROTO_SCTP == ciph.protocol)
net/netfilter/ipvs/ip_vs_core.c
1934
skb->pkt_type, iph.protocol,
net/netfilter/ipvs/ip_vs_core.c
1955
if (unlikely(iph.protocol == IPPROTO_ICMPV6)) {
net/netfilter/ipvs/ip_vs_core.c
1965
if (unlikely(iph.protocol == IPPROTO_ICMP)) {
net/netfilter/ipvs/ip_vs_core.c
1975
pd = ip_vs_proto_data_get(ipvs, iph.protocol);
net/netfilter/ipvs/ip_vs_core.c
2111
if (ip_hdr(skb)->protocol != IPPROTO_ICMP)
net/netfilter/ipvs/ip_vs_core.c
2119
if (iphdr.protocol != IPPROTO_ICMPV6)
net/netfilter/ipvs/ip_vs_core.c
230
struct sk_buff *skb, int protocol,
net/netfilter/ipvs/ip_vs_core.c
235
ip_vs_conn_fill_param(svc->ipvs, svc->af, protocol, caddr, cport, vaddr,
net/netfilter/ipvs/ip_vs_core.c
305
int protocol = iph->protocol;
net/netfilter/ipvs/ip_vs_core.c
326
protocol = IPPROTO_IP;
net/netfilter/ipvs/ip_vs_core.c
331
if (ip_vs_conn_fill_param_persist(svc, skb, protocol, &snet, 0,
net/netfilter/ipvs/ip_vs_core.c
390
&& iph->protocol == IPPROTO_UDP) ?
net/netfilter/ipvs/ip_vs_core.c
396
ip_vs_conn_fill_param(svc->ipvs, svc->af, iph->protocol, src_addr,
net/netfilter/ipvs/ip_vs_core.c
537
&& iph->protocol == IPPROTO_UDP) ?
net/netfilter/ipvs/ip_vs_core.c
546
ip_vs_conn_fill_param(svc->ipvs, svc->af, iph->protocol,
net/netfilter/ipvs/ip_vs_core.c
605
iph->protocol == IPPROTO_UDP) ?
net/netfilter/ipvs/ip_vs_core.c
613
ip_vs_conn_fill_param(svc->ipvs, svc->af, iph->protocol,
net/netfilter/ipvs/ip_vs_core.c
769
if (IPPROTO_TCP == ciph->protocol || IPPROTO_UDP == ciph->protocol ||
net/netfilter/ipvs/ip_vs_core.c
770
IPPROTO_SCTP == ciph->protocol) {
net/netfilter/ipvs/ip_vs_core.c
799
int protocol;
net/netfilter/ipvs/ip_vs_core.c
809
protocol = ipv6_find_hdr(skb, &offs, -1, &fragoffs, NULL);
net/netfilter/ipvs/ip_vs_core.c
820
if (!fragoffs && (IPPROTO_TCP == protocol || IPPROTO_UDP == protocol ||
net/netfilter/ipvs/ip_vs_core.c
821
IPPROTO_SCTP == protocol)) {
net/netfilter/ipvs/ip_vs_core.c
857
__u8 protocol, struct ip_vs_conn *cp,
net/netfilter/ipvs/ip_vs_core.c
875
if (IPPROTO_TCP == protocol || IPPROTO_UDP == protocol ||
net/netfilter/ipvs/ip_vs_core.c
876
IPPROTO_SCTP == protocol)
net/netfilter/ipvs/ip_vs_core.c
963
pp = ip_vs_proto_get(cih->protocol);
net/netfilter/ipvs/ip_vs_core.c
984
return handle_response_icmp(AF_INET, skb, &snet, cih->protocol, cp,
net/netfilter/ipvs/ip_vs_ctl.c
1095
dest->protocol = svc->protocol;
net/netfilter/ipvs/ip_vs_ctl.c
1438
svc->protocol = u->protocol;
net/netfilter/ipvs/ip_vs_ctl.c
2420
ip_vs_proto_name(svc->protocol),
net/netfilter/ipvs/ip_vs_ctl.c
2427
ip_vs_proto_name(svc->protocol),
net/netfilter/ipvs/ip_vs_ctl.c
2661
usvc->protocol = usvc_compat->protocol;
net/netfilter/ipvs/ip_vs_ctl.c
2777
if (usvc.protocol != IPPROTO_TCP && usvc.protocol != IPPROTO_UDP &&
net/netfilter/ipvs/ip_vs_ctl.c
2778
usvc.protocol != IPPROTO_SCTP) {
net/netfilter/ipvs/ip_vs_ctl.c
2780
usvc.protocol, &usvc.addr.ip,
net/netfilter/ipvs/ip_vs_ctl.c
2789
svc = __ip_vs_service_find(ipvs, usvc.af, usvc.protocol,
net/netfilter/ipvs/ip_vs_ctl.c
2796
&& (svc == NULL || svc->protocol != usvc.protocol)) {
net/netfilter/ipvs/ip_vs_ctl.c
2849
dst->protocol = src->protocol;
net/netfilter/ipvs/ip_vs_ctl.c
2925
svc = __ip_vs_service_find(ipvs, AF_INET, get->protocol, &addr,
net/netfilter/ipvs/ip_vs_ctl.c
3119
entry->protocol, &addr,
net/netfilter/ipvs/ip_vs_ctl.c
3335
if (nla_put_u16(skb, IPVS_SVC_ATTR_PROTOCOL, svc->protocol) ||
net/netfilter/ipvs/ip_vs_ctl.c
3468
usvc->protocol = IPPROTO_TCP;
net/netfilter/ipvs/ip_vs_ctl.c
3471
usvc->protocol = nla_get_u16(nla_protocol);
net/netfilter/ipvs/ip_vs_ctl.c
3481
svc = __ip_vs_service_find(ipvs, usvc->af, usvc->protocol,
net/netfilter/ipvs/ip_vs_ctl.c
359
hash = ip_vs_svc_hashkey(svc->ipvs, svc->af, svc->protocol,
net/netfilter/ipvs/ip_vs_ctl.c
407
__ip_vs_service_find(struct netns_ipvs *ipvs, int af, __u16 protocol,
net/netfilter/ipvs/ip_vs_ctl.c
414
hash = ip_vs_svc_hashkey(ipvs, af, protocol, vaddr, vport);
net/netfilter/ipvs/ip_vs_ctl.c
420
&& (svc->protocol == protocol)
net/netfilter/ipvs/ip_vs_ctl.c
456
ip_vs_service_find(struct netns_ipvs *ipvs, int af, __u32 fwmark, __u16 protocol,
net/netfilter/ipvs/ip_vs_ctl.c
474
svc = __ip_vs_service_find(ipvs, af, protocol, vaddr, vport);
net/netfilter/ipvs/ip_vs_ctl.c
476
if (!svc && protocol == IPPROTO_TCP &&
net/netfilter/ipvs/ip_vs_ctl.c
483
svc = __ip_vs_service_find(ipvs, af, protocol, vaddr, FTPPORT);
net/netfilter/ipvs/ip_vs_ctl.c
491
svc = __ip_vs_service_find(ipvs, af, protocol, vaddr, 0);
net/netfilter/ipvs/ip_vs_ctl.c
496
fwmark, ip_vs_proto_name(protocol),
net/netfilter/ipvs/ip_vs_ctl.c
610
bool ip_vs_has_real_service(struct netns_ipvs *ipvs, int af, __u16 protocol,
net/netfilter/ipvs/ip_vs_ctl.c
623
(dest->protocol == protocol || dest->vfwmark) &&
net/netfilter/ipvs/ip_vs_ctl.c
640
__u16 protocol,
net/netfilter/ipvs/ip_vs_ctl.c
654
(dest->protocol == protocol || dest->vfwmark) &&
net/netfilter/ipvs/ip_vs_ctl.c
729
__be16 vport, __u16 protocol, __u32 fwmark,
net/netfilter/ipvs/ip_vs_ctl.c
736
svc = ip_vs_service_find(ipvs, svc_af, fwmark, protocol, vaddr, vport);
net/netfilter/ipvs/ip_vs_ctl.c
801
dest->protocol == svc->protocol &&
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
572
.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
328
ip_hdr(skb)->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
71
svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol,
net/netfilter/ipvs/ip_vs_proto_tcp.c
719
.protocol = IPPROTO_TCP,
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
332
ip_hdr(skb)->protocol,
net/netfilter/ipvs/ip_vs_proto_udp.c
477
.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, ¶m, 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, ¶m, flags, state, s->v4.protocol, af,
net/netfilter/ipvs/ip_vs_sync.c
1184
ip_vs_proc_conn(ipvs, ¶m, 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
1254
iph->protocol = next_protocol;
net/netfilter/nf_conntrack_core.c
359
*protonum = iph->protocol;
net/netfilter/nf_conntrack_ovs.c
38
proto = ip_hdr(skb)->protocol;
net/netfilter/nf_conntrack_proto_gre.c
176
if (grehdr->protocol != GRE_PROTO_PPP) {
net/netfilter/nf_conntrack_proto_gre.c
177
pr_debug("Unsupported GRE proto(0x%x)\n", ntohs(grehdr->protocol));
net/netfilter/nf_flow_table_core.c
628
u8 protocol, __be16 port, __be16 new_port)
net/netfilter/nf_flow_table_core.c
630
switch (protocol) {
net/netfilter/nf_flow_table_core.c
642
u8 protocol, enum flow_offload_tuple_dir dir)
net/netfilter/nf_flow_table_core.c
662
nf_flow_nat_port(skb, thoff, protocol, port, new_port);
net/netfilter/nf_flow_table_core.c
667
unsigned int thoff, u8 protocol,
net/netfilter/nf_flow_table_core.c
688
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
337
if (iph->protocol == IPPROTO_IPIP) {
net/netfilter/nf_flow_table_ip.c
394
__be16 inner_proto = skb->protocol;
net/netfilter/nf_flow_table_ip.c
398
switch (skb->protocol) {
net/netfilter/nf_flow_table_ip.c
445
switch (skb->protocol) {
net/netfilter/nf_flow_table_ip.c
453
skb->protocol = __nf_flow_pppoe_proto(skb);
net/netfilter/nf_flow_table_ip.c
460
if (skb->protocol == htons(ETH_P_IP) ||
net/netfilter/nf_flow_table_ip.c
461
skb->protocol == htons(ETH_P_IPV6))
net/netfilter/nf_flow_table_ip.c
475
dev_hard_header(skb, skb->dev, ntohs(skb->protocol),
net/netfilter/nf_flow_table_ip.c
519
if (nf_flow_state_check(flow, iph->protocol, skb, thoff))
net/netfilter/nf_flow_table_ip.c
559
switch (skb->protocol) {
net/netfilter/nf_flow_table_ip.c
580
skb->protocol = htons(ETH_P_PPP_SES);
net/netfilter/nf_flow_table_ip.c
617
iph->protocol = tuple->tun.l3_proto;
net/netfilter/nf_flow_table_ip.c
73
switch (iph->protocol) {
net/netfilter/nf_flow_table_offload.c
893
cls_flow->common.protocol = proto;
net/netfilter/nf_log_syslog.c
364
switch (ih->protocol) {
net/netfilter/nf_log_syslog.c
366
if (nf_log_dump_tcp_header(m, skb, ih->protocol,
net/netfilter/nf_log_syslog.c
373
if (nf_log_dump_udp_header(m, skb, ih->protocol,
net/netfilter/nf_log_syslog.c
508
nf_log_buf_add(m, "PROTO=%u ", ih->protocol);
net/netfilter/nf_log_syslog.c
937
switch (skb->protocol) {
net/netfilter/nf_nat_ovs.c
31
ip_hdr(skb)->protocol == IPPROTO_ICMP) {
net/netfilter/nf_nat_proto.c
594
if (ip_hdr(skb)->protocol == IPPROTO_ICMP) {
net/netfilter/nf_synproxy_core.c
410
iph->protocol = IPPROTO_TCP;
net/netfilter/nf_synproxy_core.c
431
nskb->protocol = htons(ETH_P_IP);
net/netfilter/nf_synproxy_core.c
662
ip_hdr(skb)->protocol != IPPROTO_TCP)
net/netfilter/nf_tables_api.c
11988
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
481
pmsg.hw_protocol = skb->protocol;
net/netfilter/nfnetlink_log.c
832
if (event == NETLINK_URELEASE && n->protocol == NETLINK_NETFILTER) {
net/netfilter/nfnetlink_queue.c
1059
skb->protocol = htons(ETH_P_IP);
net/netfilter/nfnetlink_queue.c
1062
skb->protocol = htons(ETH_P_IPV6);
net/netfilter/nfnetlink_queue.c
1279
if (event == NETLINK_URELEASE && n->protocol == NETLINK_NETFILTER) {
net/netfilter/nfnetlink_queue.c
744
pmsg->hw_protocol = entskb->protocol;
net/netfilter/nft_chain_filter.c
170
switch (skb->protocol) {
net/netfilter/nft_chain_filter.c
294
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
110
if (skb->protocol != htons(ETH_P_IP)) {
net/netfilter/nft_fwd_netdev.c
126
if (skb->protocol != htons(ETH_P_IPV6)) {
net/netfilter/nft_inner.c
140
ctx->l4proto = iph->protocol;
net/netfilter/nft_meta.c
322
nft_reg_store16(dest, (__force u16)skb->protocol);
net/netfilter/nft_meta.c
96
switch (skb->protocol) {
net/netfilter/nft_payload.c
36
veth->h_vlan_encapsulated_proto = skb->protocol;
net/netfilter/nft_payload.c
400
case offsetof(struct iphdr, protocol):
net/netfilter/nft_reject_netdev.c
21
dev_hard_header(nskb, nskb->dev, ntohs(oldskb->protocol),
net/netfilter/nft_synproxy.c
140
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
661
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
303
nskb->protocol = htons((u16) sk->sk_protocol);
net/netlink/af_netlink.c
512
static struct sock *netlink_lookup(struct net *net, int protocol, u32 portid)
net/netlink/af_netlink.c
514
struct netlink_table *table = &nl_table[protocol];
net/netlink/af_netlink.c
619
int protocol, int kern)
net/netlink/af_netlink.c
635
nlk_cb_mutex_keys + protocol,
net/netlink/af_netlink.c
636
nlk_cb_mutex_key_strings[protocol]);
net/netlink/af_netlink.c
640
sk->sk_protocol = protocol;
net/netlink/af_netlink.c
644
static int netlink_create(struct net *net, struct socket *sock, int protocol,
net/netlink/af_netlink.c
659
if (protocol < 0 || protocol >= MAX_LINKS)
net/netlink/af_netlink.c
661
protocol = array_index_nospec(protocol, MAX_LINKS);
net/netlink/af_netlink.c
665
if (!nl_table[protocol].registered) {
net/netlink/af_netlink.c
667
request_module("net-pf-%d-proto-%d", PF_NETLINK, protocol);
net/netlink/af_netlink.c
671
if (nl_table[protocol].registered &&
net/netlink/af_netlink.c
672
try_module_get(nl_table[protocol].module))
net/netlink/af_netlink.c
673
module = nl_table[protocol].module;
net/netlink/af_netlink.c
676
bind = nl_table[protocol].bind;
net/netlink/af_netlink.c
677
unbind = nl_table[protocol].unbind;
net/netlink/af_netlink.c
678
release = nl_table[protocol].release;
net/netlink/af_netlink.c
684
err = __netlink_create(net, sock, protocol, kern);
net/netlink/af_netlink.c
758
.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/netrom/af_netrom.c
426
static int nr_create(struct net *net, struct socket *sock, int protocol,
net/netrom/af_netrom.c
435
if (sock->type != SOCK_SEQPACKET || protocol != 0)
net/netrom/af_netrom.c
447
sk->sk_protocol = protocol;
net/netrom/nr_dev.c
52
skb->protocol = htons(ETH_P_IP);
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
1176
if (skb->protocol == htons(ETH_P_IPV6)) {
net/openvswitch/actions.c
1190
} else if (skb->protocol == htons(ETH_P_IP)) {
net/openvswitch/actions.c
313
if (skb->protocol == htons(ETH_P_TEB))
net/openvswitch/actions.c
329
if (nh->protocol == IPPROTO_TCP) {
net/openvswitch/actions.c
333
} else if (nh->protocol == IPPROTO_UDP) {
net/openvswitch/actions.c
715
if (eth_p_mpls(skb->protocol)) {
net/openvswitch/actions.c
771
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
530
eth_type_vlan(skb->protocol))
net/openvswitch/vport.c
550
skb->protocol = htons(ETH_P_TEB);
net/packet/af_packet.c
1004
} else if (unlikely(po->sk.sk_type == SOCK_DGRAM && eth_type_vlan(pkc->skb->protocol))) {
net/packet/af_packet.c
1006
ppd->hv1.tp_vlan_tpid = ntohs(pkc->skb->protocol);
net/packet/af_packet.c
1906
spkt->spkt_protocol = skb->protocol;
net/packet/af_packet.c
1926
if ((!skb->protocol || skb->protocol == htons(ETH_P_ALL)) &&
net/packet/af_packet.c
1929
skb->protocol = dev_parse_header_protocol(skb);
net/packet/af_packet.c
1934
eth_type_vlan(skb->protocol) &&
net/packet/af_packet.c
1935
vlan_get_protocol_and_depth(skb, skb->protocol, &depth) != 0)
net/packet/af_packet.c
2049
skb->protocol = proto;
net/packet/af_packet.c
2424
} else if (unlikely(sk->sk_type == SOCK_DGRAM && eth_type_vlan(skb->protocol))) {
net/packet/af_packet.c
2426
h.h2->tp_vlan_tpid = ntohs(skb->protocol);
net/packet/af_packet.c
2458
vlan_get_protocol_dgram(skb) : skb->protocol;
net/packet/af_packet.c
2581
skb->protocol = proto;
net/packet/af_packet.c
3057
skb->protocol = proto;
net/packet/af_packet.c
3332
static int packet_create(struct net *net, struct socket *sock, int protocol,
net/packet/af_packet.c
3337
__be16 proto = (__force __be16)protocol; /* weird, but documented */
net/packet/af_packet.c
3484
vlan_get_protocol_dgram(skb) : skb->protocol;
net/packet/af_packet.c
3541
} else if (unlikely(sock->type == SOCK_DGRAM && eth_type_vlan(skb->protocol))) {
net/packet/af_packet.c
3549
aux.tp_vlan_tpid = ntohs(skb->protocol);
net/packet/af_packet.c
572
__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
240
if (skb->protocol == htons(ETH_P_IP)) {
net/psp/psp_main.c
241
ip_hdr(skb)->protocol = IPPROTO_UDP;
net/psp/psp_main.c
246
} else if (skb->protocol == htons(ETH_P_IPV6)) {
net/psp/psp_main.c
297
is_udp = iph->protocol == IPPROTO_UDP;
net/psp/psp_main.c
332
iph->protocol = psph->nexthdr;
net/qrtr/af_qrtr.c
1256
int protocol, int kern)
net/rds/af_rds.c
666
static int __rds_create(struct socket *sock, struct sock *sk, int protocol)
net/rds/af_rds.c
672
sk->sk_protocol = protocol;
net/rds/af_rds.c
697
static int rds_create(struct net *net, struct socket *sock, int protocol,
net/rds/af_rds.c
702
if (sock->type != SOCK_SEQPACKET || protocol)
net/rds/af_rds.c
709
return __rds_create(sock, sk, protocol);
net/rose/af_rose.c
546
static int rose_create(struct net *net, struct socket *sock, int protocol,
net/rose/af_rose.c
555
if (sock->type != SOCK_SEQPACKET || protocol != 0)
net/rose/af_rose.c
573
sk->sk_protocol = protocol;
net/rxrpc/af_rxrpc.c
800
static int rxrpc_create(struct net *net, struct socket *sock, int protocol,
net/rxrpc/af_rxrpc.c
807
_enter("%p,%d", sock, protocol);
net/rxrpc/af_rxrpc.c
810
if (protocol != PF_INET &&
net/rxrpc/af_rxrpc.c
811
IS_ENABLED(CONFIG_AF_RXRPC_IPV6) && protocol != PF_INET6)
net/rxrpc/af_rxrpc.c
832
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
298
ul, iph->protocol,
net/sched/act_csum.c
397
switch (iph->frag_off & htons(IP_OFFSET) ? 0 : iph->protocol) {
net/sched/act_csum.c
576
__be16 protocol;
net/sched/act_csum.c
589
protocol = skb_protocol(skb, false);
net/sched/act_csum.c
591
switch (protocol) {
net/sched/act_csum.c
604
protocol = skb->protocol;
net/sched/act_csum.c
613
protocol = vlan->h_vlan_encapsulated_proto;
net/sched/act_ct.c
533
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
338
switch (skb->protocol) {
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
947
if (iph->version == 4 && iph->protocol == IPPROTO_IPV6)
net/sched/sch_cake.c
983
if (iph->protocol == IPPROTO_IPV6) {
net/sched/sch_cake.c
992
} 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
1067
.protocol = IPPROTO_SCTP,
net/sctp/ipv6.c
1074
.protocol = IPPROTO_SCTP,
net/sctp/protocol.c
1127
.protocol = IPPROTO_SCTP,
net/sctp/protocol.c
1134
.protocol = IPPROTO_SCTP,
net/smc/af_smc.c
3373
static int smc_create(struct net *net, struct socket *sock, int protocol,
net/smc/af_smc.c
3376
int family = (protocol == SMCPROTO_SMC6) ? PF_INET6 : PF_INET;
net/smc/af_smc.c
3385
if (protocol != SMCPROTO_SMC && protocol != SMCPROTO_SMC6)
net/smc/af_smc.c
3391
sk = smc_sock_alloc(net, sock, protocol);
net/smc/af_smc.c
393
void smc_sk_init(struct net *net, struct sock *sk, int protocol)
net/smc/af_smc.c
399
sk->sk_protocol = protocol;
net/smc/af_smc.c
420
int protocol)
net/smc/af_smc.c
425
prot = (protocol == SMCPROTO_SMC6) ? &smc_proto6 : &smc_proto;
net/smc/af_smc.c
431
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
1394
int sock_create_lite(int family, int type, int protocol, struct socket **res)
net/socket.c
1399
err = security_socket_create(family, type, protocol, 1);
net/socket.c
1410
err = security_socket_post_create(sock, family, type, protocol, 1);
net/socket.c
1534
int __sock_create(struct net *net, int family, int type, int protocol,
net/socket.c
1560
err = security_socket_create(family, type, protocol, kern);
net/socket.c
1605
err = pf->create(net, sock, protocol, kern);
net/socket.c
1612
pf->create, family, type, protocol);
net/socket.c
1628
err = security_socket_post_create(sock, family, type, protocol, kern);
net/socket.c
1661
int sock_create(int family, int type, int protocol, struct socket **res)
net/socket.c
1663
return __sock_create(current->nsproxy->net_ns, family, type, protocol, res, 0);
net/socket.c
1679
int sock_create_kern(struct net *net, int family, int type, int protocol, struct socket **res)
net/socket.c
1681
return __sock_create(net, family, type, protocol, res, 1);
net/socket.c
1685
static struct socket *__sys_socket_create(int family, int type, int protocol)
net/socket.c
1700
retval = sock_create(family, type, protocol, &sock);
net/socket.c
1707
struct file *__sys_socket_file(int family, int type, int protocol)
net/socket.c
1712
sock = __sys_socket_create(family, type, protocol);
net/socket.c
1735
__weak noinline int update_socket_protocol(int family, int type, int protocol)
net/socket.c
1737
return protocol;
net/socket.c
1742
int __sys_socket(int family, int type, int protocol)
net/socket.c
1748
update_socket_protocol(family, type, protocol));
net/socket.c
1759
SYSCALL_DEFINE3(socket, int, family, int, type, int, protocol)
net/socket.c
1761
return __sys_socket(family, type, protocol);
net/socket.c
1768
int __sys_socketpair(int family, int type, int protocol, int __user *usockvec)
net/socket.c
1810
err = sock_create(family, type, protocol, &sock1);
net/socket.c
1814
err = sock_create(family, type, protocol, &sock2);
net/socket.c
1860
SYSCALL_DEFINE4(socketpair, int, family, int, type, int, protocol,
net/socket.c
1863
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
1032
const unsigned short protocol,
net/sunrpc/svc.c
1043
switch (protocol) {
net/sunrpc/svc.c
1062
error = rpcb_register(net, program, version, protocol, port);
net/sunrpc/svc.c
1080
const unsigned short protocol,
net/sunrpc/svc.c
1091
switch (protocol) {
net/sunrpc/svc.c
1125
const unsigned short protocol,
net/sunrpc/svc.c
1133
protocol, port);
net/sunrpc/svc.c
1138
protocol, port);
net/sunrpc/svc.c
1142
trace_svc_register(progname, version, family, protocol, port, error);
net/sunrpc/svcsock.c
1554
int protocol,
net/sunrpc/svcsock.c
1568
if (protocol != IPPROTO_UDP && protocol != IPPROTO_TCP) {
net/sunrpc/svcsock.c
1574
type = (protocol == IPPROTO_UDP)? SOCK_DGRAM : SOCK_STREAM;
net/sunrpc/svcsock.c
1586
error = __sock_create(net, family, type, protocol, &sock, 1);
net/sunrpc/svcsock.c
1610
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
513
skb->protocol = htons(ETH_P_TIPC);
net/tipc/bearer.c
786
skb->protocol = eth_type_trans(skb, dev);
net/tipc/socket.c
459
int protocol, int kern)
net/tipc/socket.c
467
if (unlikely(protocol != 0))
net/unix/af_unix.c
1137
static int unix_create(struct net *net, struct socket *sock, int protocol,
net/unix/af_unix.c
1142
if (protocol && protocol != PF_UNIX)
net/vmw_vsock/af_vsock.c
2653
int protocol, int kern)
net/vmw_vsock/af_vsock.c
2662
if (protocol && protocol != PF_VSOCK)
net/wireless/nl80211.c
20674
u16 proto = be16_to_cpu(skb->protocol);
net/wireless/nl80211.c
21615
if (state != NETLINK_URELEASE || notify->protocol != NETLINK_GENERIC)
net/wireless/rdev-ops.h
1089
enum nl80211_crit_proto_id protocol,
net/wireless/rdev-ops.h
1094
trace_rdev_crit_proto_start(&rdev->wiphy, wdev, protocol, duration);
net/wireless/rdev-ops.h
1096
protocol, duration);
net/wireless/trace.h
2436
enum nl80211_crit_proto_id protocol, u16 duration),
net/wireless/trace.h
2437
TP_ARGS(wiphy, wdev, protocol, duration),
net/wireless/trace.h
2447
__entry->proto = protocol;
net/wireless/trace.h
3434
__entry->proto = be16_to_cpu(skb->protocol);
net/wireless/util.c
2786
skb->protocol = eth_type_trans(skb, dev);
net/wireless/util.c
964
switch (skb->protocol) {
net/x25/af_x25.c
527
static int x25_create(struct net *net, struct socket *sock, int protocol,
net/x25/af_x25.c
542
if (protocol)
net/x25/af_x25.c
556
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
1856
static int xsk_create(struct net *net, struct socket *sock, int protocol,
net/xdp/xsk.c
1867
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
697
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
1005
protocol = cpu_to_be16(ETH_P_IP);
net/xfrm/xfrm_iptfs.c
1020
protocol = cpu_to_be16(ETH_P_IPV6);
net/xfrm/xfrm_iptfs.c
1091
skb->protocol = protocol;
net/xfrm/xfrm_iptfs.c
1094
eth_hdr(skb)->h_proto = skb->protocol;
net/xfrm/xfrm_iptfs.c
1138
skb->protocol = protocol;
net/xfrm/xfrm_iptfs.c
1143
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
2202
skb->protocol = x->outer_mode.family == AF_INET ? htons(ETH_P_IP) :
net/xfrm/xfrm_iptfs.c
2376
skb->mac_header = skb->network_header + offsetof(struct iphdr, protocol);
net/xfrm/xfrm_iptfs.c
2382
top_iph->protocol = IPPROTO_AGGFRAG;
net/xfrm/xfrm_iptfs.c
683
skb->protocol = htons(ETH_P_IP);
net/xfrm/xfrm_iptfs.c
693
skb->protocol = htons(ETH_P_IPV6);
net/xfrm/xfrm_iptfs.c
973
__be16 protocol = 0;
net/xfrm/xfrm_output.c
240
offsetof(struct iphdr, protocol);
net/xfrm/xfrm_output.c
255
ph->nexthdr = top_iph->protocol;
net/xfrm/xfrm_output.c
259
top_iph->protocol = IPPROTO_BEETPH;
net/xfrm/xfrm_output.c
275
bool small_ipv6 = (skb->protocol == htons(ETH_P_IPV6)) && (skb->len <= IPV6_MIN_MTU);
net/xfrm/xfrm_output.c
285
offsetof(struct iphdr, protocol);
net/xfrm/xfrm_output.c
292
top_iph->protocol = xfrm_af2proto(skb_dst(skb)->ops->family);
net/xfrm/xfrm_output.c
414
skb->protocol = htons(ETH_P_IP);
net/xfrm/xfrm_output.c
437
skb->protocol = htons(ETH_P_IPV6);
net/xfrm/xfrm_output.c
703
xo->inner_ipproto = ip_hdr(skb)->protocol;
net/xfrm/xfrm_output.c
738
xo->inner_ipproto = inner_ip_hdr(skb)->protocol;
net/xfrm/xfrm_output.c
74
offsetof(struct iphdr, protocol);
net/xfrm/xfrm_output.c
848
skb->protocol = htons(ETH_P_IP);
net/xfrm/xfrm_output.c
876
XFRM_MODE_SKB_CB(skb)->protocol = ip_hdr(skb)->protocol;
net/xfrm/xfrm_output.c
900
skb->protocol = htons(ETH_P_IPV6);
net/xfrm/xfrm_output.c
925
XFRM_MODE_SKB_CB(skb)->protocol = ipv6_hdr(skb)->nexthdr;
net/xfrm/xfrm_output.c
937
switch (skb->protocol) {
net/xfrm/xfrm_output.c
952
if (skb->protocol == htons(ETH_P_IP))
net/xfrm/xfrm_output.c
954
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
1254
static int apparmor_socket_create(int family, int type, int protocol, int kern)
security/apparmor/lsm.c
1268
protocol);
security/apparmor/lsm.c
1272
protocol);
security/apparmor/lsm.c
1294
int type, int protocol, int kern)
security/apparmor/net.c
131
audit_log_format(ab, " protocol=%d", ad->net.protocol);
security/apparmor/net.c
225
u32 request, u16 af, int type, int protocol,
security/apparmor/net.c
238
state = aa_dfa_match_be16(policy->dfa, state, (u16)protocol);
security/apparmor/net.c
252
int type, int protocol)
security/apparmor/net.c
268
protocol, &p, &ad->info);
security/apparmor/net.c
273
const char *op, u32 request, u16 family, int type, int protocol)
security/apparmor/net.c
276
DEFINE_AUDIT_NET(ad, op, subj_cred, NULL, family, type, protocol);
security/apparmor/net.c
280
type, protocol));
security/lsm_audit.c
50
*proto = ih->protocol;
security/lsm_audit.c
55
switch (ih->protocol) {
security/security.c
4088
int security_socket_create(int family, int type, int protocol, int kern)
security/security.c
4090
return call_int_hook(socket_create, family, type, protocol, kern);
security/security.c
4112
int type, int protocol, int kern)
security/security.c
4115
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
4529
*proto = ih->protocol;
security/selinux/hooks.c
4531
switch (ih->protocol) {
security/selinux/hooks.c
4825
int protocol, int kern)
security/selinux/hooks.c
4835
secclass = socket_type_to_security_class(family, type, protocol);
security/selinux/hooks.c
4844
int type, int protocol, int kern)
security/selinux/hooks.c
4849
u16 sclass = socket_type_to_security_class(family, type, protocol);
security/selinux/hooks.c
5315
if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP))
security/selinux/hooks.c
5406
if (skb && skb->protocol == htons(ETH_P_IP))
security/selinux/hooks.c
5408
else if (skb && skb->protocol == htons(ETH_P_IPV6))
security/selinux/hooks.c
5499
if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP))
security/selinux/hooks.c
5754
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
130
u8 protocol; /* transport protocol */
security/selinux/include/security.h
317
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
2315
c->u.port.protocol = le32_to_cpu(buf[0]);
security/selinux/ss/policydb.c
3353
buf[0] = cpu_to_le32(c->u.port.protocol);
security/selinux/ss/policydb.h
175
u8 protocol;
security/selinux/ss/services.c
2446
int security_port_sid(u8 protocol, u16 port, u32 *out_sid)
security/selinux/ss/services.c
2468
if (c->u.port.protocol == protocol &&
security/smack/smack_lsm.c
2989
int type, int protocol, int kern)
security/smack/smack_lsm.c
4265
if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP))
security/smack/smack_lsm.c
4395
if (skb->protocol == htons(ETH_P_IP))
security/smack/smack_lsm.c
4398
else if (skb->protocol == htons(ETH_P_IPV6))
security/smack/smack_lsm.c
4470
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
355
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
60
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
259
if (fmt->protocol == UAC_VERSION_3)
sound/usb/clock.c
297
int proto = fmt->protocol;
sound/usb/clock.c
454
switch (fmt->protocol) {
sound/usb/clock.c
571
if (fmt->protocol == UAC_VERSION_3)
sound/usb/clock.c
667
switch (fmt->protocol) {
sound/usb/endpoint.c
1474
if (ep->cur_audiofmt->protocol == UAC_VERSION_1) {
sound/usb/endpoint.c
1488
iface_first = ep->cur_audiofmt->protocol == UAC_VERSION_1;
sound/usb/endpoint.c
825
if (fp->protocol != UAC_VERSION_1) {
sound/usb/fcp.c
1105
if (!mixer->protocol)
sound/usb/format.c
39
switch (fp->protocol) {
sound/usb/format.c
563
if (fp->protocol == UAC_VERSION_3) {
sound/usb/format.c
730
switch (fp->protocol) {
sound/usb/format.c
775
switch (fp->protocol) {
sound/usb/format.c
830
switch (fp->protocol) {
sound/usb/helper.h
43
bool snd_usb_validate_audio_desc(void *p, int protocol);
sound/usb/midi2.c
584
unsigned int protocol, protocol_caps;
sound/usb/midi2.c
592
protocol = SNDRV_UMP_EP_INFO_PROTO_MIDI1;
sound/usb/midi2.c
596
protocol = SNDRV_UMP_EP_INFO_PROTO_MIDI2;
sound/usb/midi2.c
602
if (!ump->info.protocol)
sound/usb/midi2.c
603
ump->info.protocol = protocol;
sound/usb/midi2.c
605
protocol_caps = protocol;
sound/usb/mixer.c
1266
} else if (cval->head.mixer->protocol == UAC_VERSION_1) {
sound/usb/mixer.c
1517
if (cval->head.mixer->protocol == UAC_VERSION_2) {
sound/usb/mixer.c
1699
if (mixer->protocol == UAC_VERSION_1)
sound/usb/mixer.c
1915
if (mixer->protocol == UAC_VERSION_2)
sound/usb/mixer.c
1948
if (state->mixer->protocol != UAC_VERSION_2)
sound/usb/mixer.c
2007
if (state->mixer->protocol == UAC_VERSION_1) {
sound/usb/mixer.c
2011
} else if (state->mixer->protocol == UAC_VERSION_2) {
sound/usb/mixer.c
2059
if (state->mixer->protocol == UAC_VERSION_1) {
sound/usb/mixer.c
2137
int protocol, int num_ins, int num_outs)
sound/usb/mixer.c
2140
u8 *c = uac_mixer_unit_bmControls(desc, protocol);
sound/usb/mixer.c
2143
switch (protocol) {
sound/usb/mixer.c
2188
__u8 *c = uac_mixer_unit_bmControls(desc, state->mixer->protocol);
sound/usb/mixer.c
2227
if (state->mixer->protocol == UAC_VERSION_2) {
sound/usb/mixer.c
2232
} else if (state->mixer->protocol == UAC_VERSION_3) {
sound/usb/mixer.c
2286
if (mixer_bitmap_overflow(desc, state->mixer->protocol,
sound/usb/mixer.c
2294
state->mixer->protocol);
sound/usb/mixer.c
2513
__u8 *controls = uac_processing_unit_bmControls(desc, state->mixer->protocol);
sound/usb/mixer.c
2515
if (state->mixer->protocol == UAC_VERSION_1) {
sound/usb/mixer.c
2536
if (state->mixer->protocol > UAC_VERSION_1 &&
sound/usb/mixer.c
2546
switch (state->mixer->protocol) {
sound/usb/mixer.c
2561
state->mixer->protocol);
sound/usb/mixer.c
2606
nameid = uac_extension_unit_iExtension(desc, state->mixer->protocol);
sound/usb/mixer.c
2608
nameid = uac_processing_unit_iProcessing(desc, state->mixer->protocol);
sound/usb/mixer.c
2636
switch (state->mixer->protocol) {
sound/usb/mixer.c
2785
switch (state->mixer->protocol) {
sound/usb/mixer.c
2835
switch (state->mixer->protocol) {
sound/usb/mixer.c
2889
int protocol = state->mixer->protocol;
sound/usb/mixer.c
2900
if (!snd_usb_validate_audio_desc(p1, protocol)) {
sound/usb/mixer.c
2905
switch (PTYPE(protocol, p1[2])) {
sound/usb/mixer.c
3275
if (!snd_usb_validate_audio_desc(p, mixer->protocol))
sound/usb/mixer.c
3278
if (mixer->protocol == UAC_VERSION_1) {
sound/usb/mixer.c
3289
} else if (mixer->protocol == UAC_VERSION_2) {
sound/usb/mixer.c
3512
if (mixer->protocol == UAC_VERSION_1) {
sound/usb/mixer.c
3616
mixer->protocol = UAC_VERSION_1;
sound/usb/mixer.c
3619
mixer->protocol = UAC_VERSION_2;
sound/usb/mixer.c
3622
mixer->protocol = UAC_VERSION_3;
sound/usb/mixer.c
3626
if (mixer->protocol == UAC_VERSION_3 &&
sound/usb/mixer.c
408
return (cval->head.mixer->protocol == UAC_VERSION_1) ?
sound/usb/mixer.c
464
if (cval->head.mixer->protocol == UAC_VERSION_1) {
sound/usb/mixer.c
746
switch (state->mixer->protocol) {
sound/usb/mixer.c
840
int protocol = state->mixer->protocol;
sound/usb/mixer.c
849
if (protocol != UAC_VERSION_3) {
sound/usb/mixer.c
850
term->chconfig = uac_mixer_unit_wChannelConfig(d, protocol);
sound/usb/mixer.c
869
if (state->mixer->protocol != UAC_VERSION_3)
sound/usb/mixer.c
879
int protocol = state->mixer->protocol;
sound/usb/mixer.c
892
if (protocol == UAC_VERSION_3)
sound/usb/mixer.c
897
term->chconfig = uac_processing_unit_wChannelConfig(d, protocol);
sound/usb/mixer.c
899
term->name = uac_processing_unit_iProcessing(d, protocol);
sound/usb/mixer.c
951
int protocol = state->mixer->protocol;
sound/usb/mixer.c
963
if (!snd_usb_validate_audio_desc(p1, protocol))
sound/usb/mixer.c
969
switch (PTYPE(protocol, hdr[2])) {
sound/usb/mixer.h
26
int protocol;
sound/usb/mixer_scarlett.c
1304
if (!mixer->protocol)
sound/usb/mixer_scarlett.c
1406
if (!mixer->protocol)
sound/usb/mixer_scarlett2.c
9368
if (!mixer->protocol)
sound/usb/pcm.c
248
switch (fmt->protocol) {
sound/usb/qcom/qc_audio_offload.c
1249
int protocol;
sound/usb/qcom/qc_audio_offload.c
1260
protocol = altsd->bInterfaceProtocol;
sound/usb/qcom/qc_audio_offload.c
1262
if (protocol == UAC_VERSION_1) {
sound/usb/qcom/qc_audio_offload.c
1283
} else if (protocol == UAC_VERSION_2) {
sound/usb/qcom/qc_audio_offload.c
1289
} else if (protocol == UAC_VERSION_3) {
sound/usb/qcom/qc_audio_offload.c
1324
protocol);
sound/usb/quirks.c
191
fp->protocol = altsd->bInterfaceProtocol;
sound/usb/stream.c
1126
int num, protocol;
sound/usb/stream.c
1145
protocol = altsd->bInterfaceProtocol;
sound/usb/stream.c
1172
protocol <= 2)
sound/usb/stream.c
1173
protocol = UAC_VERSION_1;
sound/usb/stream.c
1175
switch (protocol) {
sound/usb/stream.c
1178
iface_no, altno, protocol);
sound/usb/stream.c
1179
protocol = UAC_VERSION_1;
sound/usb/stream.c
1196
protocol == UAC_VERSION_1 &&
sound/usb/stream.c
1201
fp = snd_usb_get_audioformat_uac12(chip, alts, protocol,
sound/usb/stream.c
1230
if (protocol == UAC_VERSION_3)
sound/usb/stream.c
1257
if (protocol == UAC_VERSION_1 ||
sound/usb/stream.c
240
int protocol)
sound/usb/stream.c
298
maps = protocol == UAC_VERSION_2 ? uac2_maps : uac1_maps;
sound/usb/stream.c
588
int protocol, int iface_no)
sound/usb/stream.c
614
if (protocol == UAC_VERSION_1) {
sound/usb/stream.c
616
} else if (protocol == UAC_VERSION_2) {
sound/usb/stream.c
652
int terminal_id, int protocol)
sound/usb/stream.c
659
if (!snd_usb_validate_audio_desc(term, protocol))
sound/usb/stream.c
670
int terminal_id, int protocol)
sound/usb/stream.c
678
if (!snd_usb_validate_audio_desc(term, protocol))
sound/usb/stream.c
690
int protocol, int iface_no, int altset_idx,
sound/usb/stream.c
706
fp->protocol = protocol;
sound/usb/stream.c
718
int protocol, int iface_no, int altset_idx,
sound/usb/stream.c
732
if (protocol == UAC_VERSION_1) {
sound/usb/stream.c
756
protocol);
sound/usb/stream.c
792
protocol);
sound/usb/stream.c
802
protocol);
sound/usb/stream.c
824
if (((protocol == UAC_VERSION_1) && (fmt->bLength < 8))
sound/usb/stream.c
825
|| ((protocol == UAC_VERSION_2) &&
sound/usb/stream.c
844
fp = audio_format_alloc_init(chip, alts, protocol, iface_no,
sound/usb/stream.c
849
fp->attributes = parse_uac_endpoint_attributes(chip, alts, protocol,
sound/usb/stream.c
866
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
6342
__u32 protocol;
tools/include/uapi/linux/bpf.h
6445
__u32 protocol;
tools/include/uapi/linux/bpf.h
6882
__u32 protocol; /* Allows 4-byte read, but no write */
tools/include/uapi/linux/bpf.h
7538
__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
460
extern int __sys_socket(int family, int type, int protocol);
tools/perf/trace/beauty/include/linux/socket.h
461
extern struct file *__sys_socket_file(int family, int type, int protocol);
tools/perf/trace/beauty/include/linux/socket.h
475
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
639
switch (t_params->protocol) {
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
644
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
794
t_params->protocol = cs_etm__get_v7_protocol_version(etmidr);
tools/perf/util/cs-etm.c
802
t_params->protocol = CS_ETM_PROTO_ETMV4i;
tools/perf/util/cs-etm.c
814
t_params->protocol = CS_ETM_PROTO_ETE;
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
233
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
62
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
76
int BPF_PROG(smc_run, int family, int type, int protocol)
tools/testing/selftests/bpf/progs/bpf_smc.c
81
return protocol;
tools/testing/selftests/bpf/progs/bpf_smc.c
84
return protocol;
tools/testing/selftests/bpf/progs/bpf_smc.c
86
if (protocol != 0 && protocol != IPPROTO_TCP)
tools/testing/selftests/bpf/progs/bpf_smc.c
87
return protocol;
tools/testing/selftests/bpf/progs/bpf_smc.c
92
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
26
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
185
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
349
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
52
int protocol)
tools/testing/selftests/bpf/progs/lsm_cgroup.c
58
if (family == AF_PACKET && protocol != 0)
tools/testing/selftests/bpf/progs/lsm_cgroup.c
86
int type, int protocol, int kern)
tools/testing/selftests/bpf/progs/lsm_cgroup.c
89
return real_create(sock, family, protocol);
tools/testing/selftests/bpf/progs/lsm_cgroup.c
95
int type, int protocol, int kern)
tools/testing/selftests/bpf/progs/lsm_cgroup.c
98
return real_create(sock, family, protocol);
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_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
12
__be16 protocol;
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
29
hdr.iph.protocol = 47; /* IPPROTO_GRE */
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
41
hdr.greh.protocol = skb->protocol;
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
75
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
455
if (iph->protocol != IPPROTO_UDP)
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
727
if (iph->protocol == IPPROTO_ICMP) {
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
772
if (iph->protocol == IPPROTO_ICMP)
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
811
if (iph->protocol == IPPROTO_ICMP)
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
878
if (iph->protocol == IPPROTO_ICMP) {
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
998
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_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
100
tuple.l4_protocol = iph->protocol;
tools/testing/selftests/bpf/progs/xdp_flowtable.c
95
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_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/xdping_kern.c
76
if (iph->protocol != IPPROTO_ICMP)
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/gro.c
147
next_off = sizeof(struct iphdr) + offsetof(struct iphdr, protocol);
tools/testing/selftests/drivers/net/gro.c
149
next_off = offsetof(struct iphdr, protocol);
tools/testing/selftests/drivers/net/gro.c
227
uint16_t protocol;
tools/testing/selftests/drivers/net/gro.c
233
uint16_t protocol;
tools/testing/selftests/drivers/net/gro.c
243
ph6.protocol = htons(IPPROTO_TCP);
tools/testing/selftests/drivers/net/gro.c
252
ph4.protocol = htons(IPPROTO_TCP);
tools/testing/selftests/drivers/net/gro.c
278
static void fill_networklayer(void *buf, int payload_len, int protocol)
tools/testing/selftests/drivers/net/gro.c
288
ip6h->nexthdr = protocol;
tools/testing/selftests/drivers/net/gro.c
300
iph->protocol = protocol;
tools/testing/selftests/drivers/net/hw/toeplitz.c
345
__set_filter(fd, offsetof(struct iphdr, protocol), proto,
tools/testing/selftests/landlock/common.h
226
int protocol;
tools/testing/selftests/landlock/common.h
230
struct protocol_variant protocol;
tools/testing/selftests/landlock/net_test.c
108
ret = socket(srv->protocol.domain, srv->protocol.type | SOCK_CLOEXEC,
tools/testing/selftests/landlock/net_test.c
109
srv->protocol.protocol);
tools/testing/selftests/landlock/net_test.c
122
switch (srv->protocol.domain) {
tools/testing/selftests/landlock/net_test.c
149
switch (srv->protocol.domain) {
tools/testing/selftests/landlock/net_test.c
195
switch (srv->protocol.domain) {
tools/testing/selftests/landlock/net_test.c
231
switch (srv->protocol.domain) {
tools/testing/selftests/landlock/net_test.c
261
FIXTURE(protocol)
tools/testing/selftests/landlock/net_test.c
266
FIXTURE_VARIANT(protocol)
tools/testing/selftests/landlock/net_test.c
272
FIXTURE_SETUP(protocol)
tools/testing/selftests/landlock/net_test.c
293
FIXTURE_TEARDOWN(protocol)
tools/testing/selftests/landlock/net_test.c
298
FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_ipv4_tcp1) {
tools/testing/selftests/landlock/net_test.c
305
.protocol = IPPROTO_IP,
tools/testing/selftests/landlock/net_test.c
310
FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_ipv4_tcp2) {
tools/testing/selftests/landlock/net_test.c
316
.protocol = IPPROTO_TCP,
tools/testing/selftests/landlock/net_test.c
321
FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_ipv4_mptcp) {
tools/testing/selftests/landlock/net_test.c
327
.protocol = IPPROTO_MPTCP,
tools/testing/selftests/landlock/net_test.c
332
FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_ipv6_tcp1) {
tools/testing/selftests/landlock/net_test.c
339
.protocol = IPPROTO_IP,
tools/testing/selftests/landlock/net_test.c
344
FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_ipv6_tcp2) {
tools/testing/selftests/landlock/net_test.c
350
.protocol = IPPROTO_TCP,
tools/testing/selftests/landlock/net_test.c
355
FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_ipv6_mptcp) {
tools/testing/selftests/landlock/net_test.c
361
.protocol = IPPROTO_MPTCP,
tools/testing/selftests/landlock/net_test.c
366
FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_ipv4_udp) {
tools/testing/selftests/landlock/net_test.c
376
FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_ipv6_udp) {
tools/testing/selftests/landlock/net_test.c
386
FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_unix_stream) {
tools/testing/selftests/landlock/net_test.c
396
FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_unix_datagram) {
tools/testing/selftests/landlock/net_test.c
406
FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_ipv4_tcp1) {
tools/testing/selftests/landlock/net_test.c
413
.protocol = IPPROTO_IP,
tools/testing/selftests/landlock/net_test.c
418
FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_ipv4_tcp2) {
tools/testing/selftests/landlock/net_test.c
424
.protocol = IPPROTO_TCP,
tools/testing/selftests/landlock/net_test.c
429
FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_ipv4_mptcp) {
tools/testing/selftests/landlock/net_test.c
435
.protocol = IPPROTO_MPTCP,
tools/testing/selftests/landlock/net_test.c
440
FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_ipv6_tcp1) {
tools/testing/selftests/landlock/net_test.c
447
.protocol = IPPROTO_IP,
tools/testing/selftests/landlock/net_test.c
452
FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_ipv6_tcp2) {
tools/testing/selftests/landlock/net_test.c
458
.protocol = IPPROTO_TCP,
tools/testing/selftests/landlock/net_test.c
463
FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_ipv6_mptcp) {
tools/testing/selftests/landlock/net_test.c
469
.protocol = IPPROTO_MPTCP,
tools/testing/selftests/landlock/net_test.c
474
FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_ipv4_udp) {
tools/testing/selftests/landlock/net_test.c
484
FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_ipv6_udp) {
tools/testing/selftests/landlock/net_test.c
494
FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_unix_stream) {
tools/testing/selftests/landlock/net_test.c
50
srv->protocol = prot;
tools/testing/selftests/landlock/net_test.c
504
FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_unix_datagram) {
tools/testing/selftests/landlock/net_test.c
560
if (srv->protocol.domain == AF_UNIX) {
tools/testing/selftests/landlock/net_test.c
564
} else if (srv->protocol.type == SOCK_STREAM) {
tools/testing/selftests/landlock/net_test.c
587
if (srv->protocol.type == SOCK_STREAM)
tools/testing/selftests/landlock/net_test.c
621
if (srv->protocol.type == SOCK_STREAM) {
tools/testing/selftests/landlock/net_test.c
642
TEST_F(protocol, bind)
tools/testing/selftests/landlock/net_test.c
692
TEST_F(protocol, connect)
tools/testing/selftests/landlock/net_test.c
738
TEST_F(protocol, bind_unspec)
tools/testing/selftests/landlock/net_test.c
829
TEST_F(protocol, connect_unspec)
tools/testing/selftests/landlock/net_test.c
845
if (self->srv0.protocol.type == SOCK_STREAM)
tools/testing/selftests/landlock/net_test.c
862
if (self->srv0.protocol.type == SOCK_STREAM) {
tools/testing/selftests/landlock/net_test.c
883
if (self->srv0.protocol.domain == AF_UNIX &&
tools/testing/selftests/landlock/net_test.c
884
self->srv0.protocol.type == SOCK_STREAM) {
tools/testing/selftests/landlock/net_test.c
892
if (self->srv0.protocol.domain == AF_UNIX &&
tools/testing/selftests/landlock/net_test.c
893
self->srv0.protocol.type == SOCK_STREAM) {
tools/testing/selftests/landlock/net_test.c
922
if (self->srv0.protocol.domain == AF_UNIX &&
tools/testing/selftests/landlock/net_test.c
923
self->srv0.protocol.type == SOCK_STREAM) {
tools/testing/selftests/landlock/net_test.c
93
(prot->protocol == IPPROTO_TCP || prot->protocol == IPPROTO_IP);
tools/testing/selftests/landlock/net_test.c
936
if (self->srv0.protocol.type == SOCK_STREAM) {
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/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/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
158
fd[i] = socket(p.recv_family, p.protocol, 0);
tools/testing/selftests/net/reuseport_bpf.c
173
if (p.protocol == SOCK_STREAM) {
tools/testing/selftests/net/reuseport_bpf.c
192
const int fd = socket(p.send_family, p.protocol, 0), one = 1;
tools/testing/selftests/net/reuseport_bpf.c
244
if (p.protocol == SOCK_STREAM) {
tools/testing/selftests/net/reuseport_bpf.c
312
fd1 = socket(p.recv_family, p.protocol, 0);
tools/testing/selftests/net/reuseport_bpf.c
315
fd2 = socket(p.recv_family, p.protocol, 0);
tools/testing/selftests/net/reuseport_bpf.c
32
int protocol;
tools/testing/selftests/net/reuseport_bpf.c
368
fd = socket(p.recv_family, p.protocol, 0);
tools/testing/selftests/net/reuseport_bpf.c
467
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
474
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
481
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
488
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
494
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
498
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
505
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
512
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
519
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
526
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
532
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
536
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
543
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
550
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
557
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
564
.protocol = SOCK_DGRAM,
tools/testing/selftests/net/reuseport_bpf.c
575
.protocol = SOCK_STREAM,
tools/testing/selftests/net/reuseport_bpf.c
582
.protocol = SOCK_STREAM,
tools/testing/selftests/net/reuseport_bpf.c
588
.protocol = SOCK_STREAM,
tools/testing/selftests/net/reuseport_bpf.c
592
.protocol = SOCK_STREAM,
tools/testing/selftests/net/reuseport_bpf.c
599
.protocol = SOCK_STREAM,
tools/testing/selftests/net/reuseport_bpf.c
606
.protocol = SOCK_STREAM,
tools/testing/selftests/net/reuseport_bpf.c
612
.protocol = SOCK_STREAM,
tools/testing/selftests/net/reuseport_bpf.c
616
.protocol = SOCK_STREAM,
tools/testing/selftests/net/reuseport_bpf.c
623
.protocol = SOCK_STREAM,
tools/testing/selftests/net/reuseport_bpf.c
630
.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
296
uint8_t subclass, uint8_t protocol)
tools/usb/usbip/libsrc/usbip_common.c
300
if (class == 0 && subclass == 0 && protocol == 0) {
tools/usb/usbip/libsrc/usbip_common.c
301
snprintf(buff, size, "(Defined at Interface level) (%02x/%02x/%02x)", class, subclass, protocol);
tools/usb/usbip/libsrc/usbip_common.c
305
p = names_protocol(class, subclass, protocol);
tools/usb/usbip/libsrc/usbip_common.c
317
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);