Searched refs:ptype (Results 1 - 74 of 74) sorted by relevance

/linux-4.1.27/include/uapi/linux/tc_act/
H A Dtc_gact.h18 __u16 ptype; member in struct:tc_gact_p
/linux-4.1.27/include/uapi/linux/netfilter_bridge/
H A Debt_arp.h22 __be16 ptype; member in struct:ebt_arp_info
/linux-4.1.27/include/linux/
H A Damigaffs.h47 __be32 ptype; member in struct:affs_root_head
73 __be32 ptype; member in struct:affs_head
103 __be32 ptype; member in struct:slink_front
112 __be32 ptype; member in struct:affs_data_head
H A Dnetdevice.h373 * are registered on exact device (ptype->dev == skb->dev).
1977 bool (*id_match)(struct packet_type *ptype,
/linux-4.1.27/include/net/
H A Darp.h40 void arp_send(int type, int ptype, __be32 dest_ip,
47 struct sk_buff *arp_create(int type, int ptype, __be32 dest_ip,
/linux-4.1.27/net/ipv4/
H A Dgre_offload.c128 struct packet_offload *ptype; gre_gro_receive() local
152 ptype = gro_find_receive_by_type(type); gre_gro_receive()
153 if (!ptype) gre_gro_receive()
217 pp = ptype->callbacks.gro_receive(head, skb); gre_gro_receive()
230 struct packet_offload *ptype; gre_gro_complete() local
246 ptype = gro_find_complete_by_type(type); gre_gro_complete()
247 if (ptype) gre_gro_complete()
248 err = ptype->callbacks.gro_complete(skb, nhoff + grehlen); gre_gro_complete()
H A Dgeneve.c157 const struct packet_offload *ptype; geneve_gro_receive() local
198 ptype = gro_find_receive_by_type(type); geneve_gro_receive()
199 if (!ptype) { geneve_gro_receive()
206 pp = ptype->callbacks.gro_receive(head, skb); geneve_gro_receive()
220 struct packet_offload *ptype; geneve_gro_complete() local
232 ptype = gro_find_complete_by_type(type); geneve_gro_complete()
233 if (ptype) geneve_gro_complete()
234 err = ptype->callbacks.gro_complete(skb, nhoff + gh_len); geneve_gro_complete()
H A Darp.c481 struct sk_buff *arp_create(int type, int ptype, __be32 dest_ip, arp_create() argument
514 if (dev_hard_header(skb, dev, ptype, dest_hw, src_hw, skb->len) < 0) arp_create()
602 void arp_send(int type, int ptype, __be32 dest_ip, arp_send() argument
616 skb = arp_create(type, ptype, dest_ip, dev, src_ip, arp_send()
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/linux/
H A Dlinux-tracefile.c244 char *prefix = "Lustre", *ptype = NULL; cfs_print_to_console() local
248 ptype = KERN_EMERG; cfs_print_to_console()
251 ptype = KERN_ERR; cfs_print_to_console()
254 ptype = KERN_WARNING; cfs_print_to_console()
257 ptype = KERN_INFO; cfs_print_to_console()
261 printk("%s%s: %.*s", ptype, prefix, len, buf); cfs_print_to_console()
263 printk("%s%s: %d:%d:(%s:%d:%s()) %.*s", ptype, prefix, cfs_print_to_console()
/linux-4.1.27/kernel/trace/
H A Dtrace_probe.h205 #define __ASSIGN_FETCH_TYPE(_name, ptype, ftype, _size, sign, _fmttype) \
209 .print = PRINT_TYPE_FUNC_NAME(ptype), \
210 .fmt = PRINT_TYPE_FMT_NAME(ptype), \
224 #define ASSIGN_FETCH_TYPE(ptype, ftype, sign) \
225 __ASSIGN_FETCH_TYPE(#ptype, ptype, ftype, sizeof(ftype), sign, #ptype)
/linux-4.1.27/drivers/staging/ozwpan/
H A Dozproto.c34 struct packet_type ptype; member in struct:oz_binding
465 dev_remove_pack(&b->ptype); oz_protocol_term()
466 if (b->ptype.dev) oz_protocol_term()
467 dev_put(b->ptype.dev); oz_protocol_term()
680 binding->ptype.type = htons(OZ_ETHERTYPE); oz_binding_add()
681 binding->ptype.func = oz_pkt_recv; oz_binding_add()
685 binding->ptype.dev = dev_get_by_name(&init_net, net_dev); oz_binding_add()
686 if (binding->ptype.dev == NULL) { oz_binding_add()
692 dev_add_pack(&binding->ptype); oz_binding_add()
741 dev_remove_pack(&binding->ptype); oz_binding_remove()
742 if (binding->ptype.dev) { oz_binding_remove()
743 dev_put(binding->ptype.dev); oz_binding_remove()
744 pd_stop_all_for_device(binding->ptype.dev); oz_binding_remove()
/linux-4.1.27/net/nfc/
H A Dllcp_core.c731 u8 ptype = nfc_llcp_ptype(skb); nfc_llcp_tx_work() local
739 if (ptype == LLCP_PDU_DISC && sk != NULL && nfc_llcp_tx_work()
746 if (ptype == LLCP_PDU_I) nfc_llcp_tx_work()
762 if (ptype == LLCP_PDU_I && copy_skb) nfc_llcp_tx_work()
1029 u8 dsap, ssap, ptype, ns, nr; nfc_llcp_recv_hdlc() local
1031 ptype = nfc_llcp_ptype(skb); nfc_llcp_recv_hdlc()
1053 if (ptype == LLCP_PDU_I) { nfc_llcp_recv_hdlc()
1099 if (ptype == LLCP_PDU_RR) nfc_llcp_recv_hdlc()
1101 else if (ptype == LLCP_PDU_RNR) nfc_llcp_recv_hdlc()
1104 if (nfc_llcp_queue_i_frames(llcp_sock) == 0 && ptype == LLCP_PDU_I) nfc_llcp_recv_hdlc()
1362 u8 ptype; nfc_llcp_recv_agf() local
1383 ptype = nfc_llcp_ptype(skb); nfc_llcp_recv_agf()
1385 if (ptype == LLCP_PDU_SYMM || ptype == LLCP_PDU_AGF) nfc_llcp_recv_agf()
1406 u8 dsap, ssap, ptype; nfc_llcp_rx_skb() local
1408 ptype = nfc_llcp_ptype(skb); nfc_llcp_rx_skb()
1412 pr_debug("ptype 0x%x dsap 0x%x ssap 0x%x\n", ptype, dsap, ssap); nfc_llcp_rx_skb()
1414 if (ptype != LLCP_PDU_SYMM) nfc_llcp_rx_skb()
1418 switch (ptype) { nfc_llcp_rx_skb()
H A Dllcp_commands.c290 u8 dsap, u8 ssap, u8 ptype) llcp_add_header()
294 pr_debug("ptype 0x%x dsap 0x%x ssap 0x%x\n", ptype, dsap, ssap); llcp_add_header()
296 header[0] = (u8)((dsap << 2) | (ptype >> 2)); llcp_add_header()
297 header[1] = (u8)((ptype << 6) | ssap); llcp_add_header()
289 llcp_add_header(struct sk_buff *pdu, u8 dsap, u8 ssap, u8 ptype) llcp_add_header() argument
/linux-4.1.27/net/sched/
H A Dact_gact.c82 if (p_parm->ptype >= MAX_RAND) tcf_gact_init()
108 gact->tcfg_ptype = p_parm->ptype; tcf_gact_init()
161 .ptype = gact->tcfg_ptype, tcf_gact_dump()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_dcb.c218 u8 *ptype) ixgbe_dcb_unpack_prio()
224 ptype[tc] = tc_config[tc].path[direction].prio_type; ixgbe_dcb_unpack_prio()
269 u8 ptype[MAX_TRAFFIC_CLASS]; ixgbe_dcb_hw_config() local
280 ixgbe_dcb_unpack_prio(dcb_config, DCB_TX_CONFIG, ptype); ixgbe_dcb_hw_config()
286 bwgid, ptype); ixgbe_dcb_hw_config()
292 bwgid, ptype, prio_tc); ixgbe_dcb_hw_config()
217 ixgbe_dcb_unpack_prio(struct ixgbe_dcb_config *cfg, int direction, u8 *ptype) ixgbe_dcb_unpack_prio() argument
/linux-4.1.27/drivers/isdn/isdnloop/
H A Disdnloop.h27 int ptype; member in struct:isdnloop_sdef
78 int ptype; /* Protocol type (1TR6 or Euro) */ member in struct:isdnloop_card
H A Disdnloop.c347 card->ptype = ISDN_PTYPE_1TR6; isdnloop_polldchan()
353 card->ptype = ISDN_PTYPE_EURO; isdnloop_polldchan()
547 switch (card->ptype) { isdnloop_unicause()
683 switch (cc->ptype) { isdnloop_try_call()
748 switch (card->ptype) { isdnloop_vstphone()
857 if (card->ptype != ISDN_PTYPE_1TR6) { isdnloop_parse_cmd()
1078 switch (sdef.ptype) { isdnloop_start()
1113 sdef.ptype); isdnloop_start()
1160 while (card->ptype == ISDN_PTYPE_UNKNOWN) isdnloop_command()
1287 if (card->ptype == ISDN_PTYPE_EURO) { isdnloop_command()
1303 if (card->ptype == ISDN_PTYPE_EURO) isdnloop_command()
1460 card->ptype = ISDN_PTYPE_UNKNOWN; isdnloop_initcard()
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/
H A Di40e_prototype.h68 static inline struct i40e_rx_ptype_decoded decode_rx_desc_ptype(u8 ptype) decode_rx_desc_ptype() argument
70 return i40evf_ptype_lookup[ptype]; decode_rx_desc_ptype()
H A Di40e_common.c181 /* The i40evf_ptype_lookup table is used to convert from the 8-bit ptype in the
194 * IF NOT i40evf_ptype_lookup[ptype].known
197 * ELSE IF i40evf_ptype_lookup[ptype].outer_ip == I40E_RX_PTYPE_OUTER_IP
H A Di40e_txrx.c849 * @rx_ptype: ptype value of last descriptor in packet
973 * @ptype: the ptype value from the descriptor
977 static inline enum pkt_hash_types i40e_ptype_to_hash(u8 ptype) i40e_ptype_to_hash() argument
979 struct i40e_rx_ptype_decoded decoded = decode_rx_desc_ptype(ptype); i40e_ptype_to_hash()
H A Di40e_type.h673 u32 ptype:8; member in struct:i40e_rx_ptype_decoded
/linux-4.1.27/net/ethernet/
H A Deth.c400 const struct packet_offload *ptype; eth_gro_receive() local
429 ptype = gro_find_receive_by_type(type); eth_gro_receive()
430 if (ptype == NULL) { eth_gro_receive()
437 pp = ptype->callbacks.gro_receive(head, skb); eth_gro_receive()
452 struct packet_offload *ptype; eth_gro_complete() local
459 ptype = gro_find_complete_by_type(type); eth_gro_complete()
460 if (ptype != NULL) eth_gro_complete()
461 err = ptype->callbacks.gro_complete(skb, nhoff + eth_gro_complete()
/linux-4.1.27/crypto/
H A Dablkcipher.c537 } ptype; crypto_givcipher_default() local
560 ptype.attr.rta_len = sizeof(ptype); crypto_givcipher_default()
561 ptype.attr.rta_type = CRYPTOA_TYPE; crypto_givcipher_default()
562 ptype.data.type = type | CRYPTO_ALG_GENIV; crypto_givcipher_default()
564 ptype.data.mask = mask | CRYPTO_ALG_GENIV; crypto_givcipher_default()
565 tb[0] = &ptype.attr; crypto_givcipher_default()
H A Daead.c402 } ptype; crypto_nivaead_default() local
424 ptype.attr.rta_len = sizeof(ptype); crypto_nivaead_default()
425 ptype.attr.rta_type = CRYPTOA_TYPE; crypto_nivaead_default()
426 ptype.data.type = type | CRYPTO_ALG_GENIV; crypto_nivaead_default()
428 ptype.data.mask = mask | CRYPTO_ALG_GENIV; crypto_nivaead_default()
429 tb[0] = &ptype.attr; crypto_nivaead_default()
/linux-4.1.27/arch/powerpc/perf/
H A Dpower6-pmu.c141 int pmc, psel, ptype; power6_marked_instr_event() local
152 ptype = direct_event_is_marked[psel]; power6_marked_instr_event()
153 if (pmc == 0 || !(ptype & (1 << (pmc - 1)))) power6_marked_instr_event()
155 ptype >>= 4; power6_marked_instr_event()
156 if (ptype == 0) power6_marked_instr_event()
158 if (ptype == 1) power6_marked_instr_event()
161 bit = ptype ^ (pmc - 1); power6_marked_instr_event()
/linux-4.1.27/drivers/usb/host/
H A Duhci-debug.c105 char *ptype; uhci_show_urbp() local
118 case PIPE_ISOCHRONOUS: ptype = "ISO"; break; uhci_show_urbp()
119 case PIPE_INTERRUPT: ptype = "INT"; break; uhci_show_urbp()
120 case PIPE_BULK: ptype = "BLK"; break; uhci_show_urbp()
122 case PIPE_CONTROL: ptype = "CTL"; break; uhci_show_urbp()
125 out += sprintf(out, "%s%s", ptype, (urbp->fsbr ? " FSBR" : "")); uhci_show_urbp()
/linux-4.1.27/scripts/kconfig/
H A Dgconf.c709 enum prop_type ptype; on_back_clicked() local
712 ptype = current->prompt ? current->prompt->type : P_UNKNOWN; on_back_clicked()
713 if (ptype != P_MENU) on_back_clicked()
909 enum prop_type ptype; on_treeview2_button_press_event() local
910 ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN; on_treeview2_button_press_event()
912 if (ptype == P_MENU && view_mode != FULL_VIEW && col == COL_OPTION) { on_treeview2_button_press_event()
1044 enum prop_type ptype; fill_row() local
1063 ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN; fill_row()
1064 switch (ptype) { fill_row()
1339 enum prop_type ptype; display_tree() local
1349 ptype = prop ? prop->type : P_UNKNOWN; display_tree()
1369 printf("%s", prop_get_type_name(ptype)); display_tree()
1379 if ((view_mode != FULL_VIEW) && (ptype == P_MENU) display_tree()
H A Dqconf.cc729 enum prop_type ptype; contentsMouseReleaseEvent() local
751 ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN; contentsMouseReleaseEvent()
752 if (ptype == P_MENU && rootEntry != menu && contentsMouseReleaseEvent()
791 enum prop_type ptype; contentsMouseDoubleClickEvent() local
802 ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN; contentsMouseDoubleClickEvent()
803 if (ptype == P_MENU && (mode == singleMode || mode == symbolMode)) contentsMouseDoubleClickEvent()
H A Dnconf.c750 enum prop_type ptype; build_conf() local
751 ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN; build_conf()
752 switch (ptype) { build_conf()
/linux-4.1.27/fs/affs/
H A Dinode.c41 if (affs_checksum_block(sb, bh) || be32_to_cpu(AFFS_HEAD(bh)->ptype) != T_SHORT) { affs_iget()
43 "Checksum or type (ptype=%d) error on inode %d", affs_iget()
44 AFFS_HEAD(bh)->ptype, block); affs_iget()
379 AFFS_HEAD(bh)->ptype = cpu_to_be32(T_SHORT); affs_add_entry()
H A Dfile.c133 AFFS_HEAD(new_bh)->ptype = cpu_to_be32(T_LIST); affs_alloc_extblock()
578 AFFS_DATA_HEAD(bh)->ptype = cpu_to_be32(T_DATA); affs_extent_file_ofs()
728 AFFS_DATA_HEAD(bh)->ptype = cpu_to_be32(T_DATA); affs_write_end_ofs()
762 AFFS_DATA_HEAD(bh)->ptype = cpu_to_be32(T_DATA); affs_write_end_ofs()
H A Dsuper.c395 be32_to_cpu(AFFS_ROOT_HEAD(root_bh)->ptype) == T_SHORT && affs_fill_super()
/linux-4.1.27/drivers/media/usb/dvb-usb/
H A Dusb-urb.c17 int ptype = usb_pipetype(urb->pipe); usb_urb_complete() local
22 ptype == PIPE_ISOCHRONOUS ? "isoc" : "bulk", usb_urb_complete()
40 switch (ptype) { usb_urb_complete()
/linux-4.1.27/drivers/media/usb/dvb-usb-v2/
H A Dusb_urb.c21 int ptype = usb_pipetype(urb->pipe); usb_urb_complete() local
27 __func__, ptype == PIPE_ISOCHRONOUS ? "isoc" : "bulk", usb_urb_complete()
48 switch (ptype) { usb_urb_complete()
/linux-4.1.27/net/core/
H A Dnet-procfs.c324 if (!proc_create("ptype", S_IRUGO, net->proc_net, &ptype_seq_fops)) dev_proc_net_init()
333 remove_proc_entry("ptype", net->proc_net); dev_proc_net_init()
345 remove_proc_entry("ptype", net->proc_net); dev_proc_net_exit()
H A Ddev.c1773 struct packet_type *ptype, *pt_prev = *pt; deliver_ptype_list_skb() local
1775 list_for_each_entry_rcu(ptype, ptype_list, list) { list_for_each_entry_rcu()
1776 if (ptype->type != type) list_for_each_entry_rcu()
1780 pt_prev = ptype; list_for_each_entry_rcu()
1785 static inline bool skb_loop_sk(struct packet_type *ptype, struct sk_buff *skb) skb_loop_sk() argument
1787 if (!ptype->af_packet_priv || !skb->sk) skb_loop_sk()
1790 if (ptype->id_match) skb_loop_sk()
1791 return ptype->id_match(ptype, skb->sk); skb_loop_sk()
1792 else if ((struct sock *)ptype->af_packet_priv == skb->sk) skb_loop_sk()
1805 struct packet_type *ptype; dev_queue_xmit_nit() local
1812 list_for_each_entry_rcu(ptype, ptype_list, list) { list_for_each_entry_rcu()
1816 if (skb_loop_sk(ptype, skb)) list_for_each_entry_rcu()
1821 pt_prev = ptype; list_for_each_entry_rcu()
1848 pt_prev = ptype; list_for_each_entry_rcu()
2437 struct packet_offload *ptype; skb_mac_gso_segment() local
2447 list_for_each_entry_rcu(ptype, &offload_base, list) { skb_mac_gso_segment()
2448 if (ptype->type == type && ptype->callbacks.gso_segment) { skb_mac_gso_segment()
2449 segs = ptype->callbacks.gso_segment(skb, features); skb_mac_gso_segment()
3654 struct packet_type *ptype, *pt_prev; __netif_receive_skb_core() local
3696 list_for_each_entry_rcu(ptype, &ptype_all, list) { __netif_receive_skb_core()
3699 pt_prev = ptype; __netif_receive_skb_core()
3702 list_for_each_entry_rcu(ptype, &skb->dev->ptype_all, list) { __netif_receive_skb_core()
3705 pt_prev = ptype; __netif_receive_skb_core()
3906 struct packet_offload *ptype; napi_gro_complete() local
3919 list_for_each_entry_rcu(ptype, head, list) { list_for_each_entry_rcu()
3920 if (ptype->type != type || !ptype->callbacks.gro_complete) list_for_each_entry_rcu()
3923 err = ptype->callbacks.gro_complete(skb, 0); list_for_each_entry_rcu()
3929 WARN_ON(&ptype->list == head);
4037 struct packet_offload *ptype; dev_gro_receive() local
4053 list_for_each_entry_rcu(ptype, head, list) { list_for_each_entry_rcu()
4054 if (ptype->type != type || !ptype->callbacks.gro_receive) list_for_each_entry_rcu()
4081 pp = ptype->callbacks.gro_receive(&napi->gro_list, skb); list_for_each_entry_rcu()
4086 if (&ptype->list == head)
4144 struct packet_offload *ptype; gro_find_receive_by_type() local
4146 list_for_each_entry_rcu(ptype, offload_head, list) { list_for_each_entry_rcu()
4147 if (ptype->type != type || !ptype->callbacks.gro_receive) list_for_each_entry_rcu()
4149 return ptype; list_for_each_entry_rcu()
4158 struct packet_offload *ptype; gro_find_complete_by_type() local
4160 list_for_each_entry_rcu(ptype, offload_head, list) { list_for_each_entry_rcu()
4161 if (ptype->type != type || !ptype->callbacks.gro_complete) list_for_each_entry_rcu()
4163 return ptype; list_for_each_entry_rcu()
/linux-4.1.27/drivers/tty/serial/
H A Dtilegx.c493 type.ptype = UART_TYPE__PTYPE_VAL_MARK; tilegx_set_termios()
495 type.ptype = UART_TYPE__PTYPE_VAL_SPACE; tilegx_set_termios()
497 type.ptype = UART_TYPE__PTYPE_VAL_ODD; tilegx_set_termios()
499 type.ptype = UART_TYPE__PTYPE_VAL_EVEN; tilegx_set_termios()
501 type.ptype = UART_TYPE__PTYPE_VAL_NONE; tilegx_set_termios()
/linux-4.1.27/tools/perf/util/
H A Dpython.c38 #define member_def(type, member, ptype, help) \
39 { #member, ptype, \
43 #define sample_member_def(name, member, ptype, help) \
44 { #name, ptype, \
350 PyTypeObject *ptype; pyrf_event__new() local
356 ptype = pyrf_event__type[event->header.type]; pyrf_event__new()
357 pevent = PyObject_New(struct pyrf_event, ptype); pyrf_event__new()
/linux-4.1.27/net/ax25/
H A Dax25_in.c188 ax25_address *dev_addr, struct packet_type *ptype) ax25_rcv()
438 struct packet_type *ptype, struct net_device *orig_dev) ax25_kiss_rcv()
454 return ax25_rcv(skb, dev, (ax25_address *)dev->dev_addr, ptype); ax25_kiss_rcv()
187 ax25_rcv(struct sk_buff *skb, struct net_device *dev, ax25_address *dev_addr, struct packet_type *ptype) ax25_rcv() argument
437 ax25_kiss_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *ptype, struct net_device *orig_dev) ax25_kiss_rcv() argument
/linux-4.1.27/include/net/irda/
H A Dirda.h113 struct packet_type *ptype, struct net_device *orig_dev);
/linux-4.1.27/net/bridge/netfilter/
H A Debt_arp.c34 if (info->bitmask & EBT_ARP_PTYPE && FWINV(info->ptype != ebt_arp_mt()
/linux-4.1.27/arch/tile/include/arch/
H A Duart.h283 uint_reg_t ptype : 3; member in struct:__anon2795::__anon2796
288 uint_reg_t ptype : 3;
/linux-4.1.27/drivers/isdn/act2000/
H A Dmodule.c283 card->ptype = a ? ISDN_PTYPE_EURO : ISDN_PTYPE_1TR6; act2000_command()
324 if (card->ptype == ISDN_PTYPE_EURO) act2000_command()
374 if (card->ptype == ISDN_PTYPE_EURO) { act2000_command()
377 if (card->ptype == ISDN_PTYPE_1TR6) { act2000_command()
603 card->ptype = ISDN_PTYPE_EURO; act2000_alloccard()
H A Dact2000.h154 u_char ptype; /* Protocol type (1TR6 or Euro) */ member in struct:act2000_card
H A Dcapi.c212 m->msg.manufacturer_req_net.nettype = (card->ptype == ISDN_PTYPE_EURO) ? 1 : 0; actcapi_manufacturer_req_net()
215 card->interface.id, (card->ptype == ISDN_PTYPE_EURO) ? "euro" : "1tr6"); actcapi_manufacturer_req_net()
219 ((card->ptype == ISDN_PTYPE_EURO) ? ISDN_FEATURE_P_EURO : ISDN_FEATURE_P_1TR6); actcapi_manufacturer_req_net()
700 if (card->ptype == ISDN_PTYPE_EURO) actcapi_dispatch()
/linux-4.1.27/scripts/
H A Dget_maintainer.pl959 my $ptype = $1;
961 if ($ptype eq "S") {
1018 my $ptype = $1;
1020 if ($ptype eq "L") {
1054 } elsif ($ptype eq "M") {
1071 } elsif ($ptype eq "R") {
1087 } elsif ($ptype eq "T") {
1089 } elsif ($ptype eq "W") {
1091 } elsif ($ptype eq "S") {
/linux-4.1.27/drivers/media/usb/au0828/
H A Dau0828-dvb.c116 int ptype = usb_pipetype(purb->pipe); urb_completion() local
131 if (ptype != PIPE_BULK) { urb_completion()
133 __func__, ptype); urb_completion()
/linux-4.1.27/net/x25/
H A Dx25_dev.c100 struct packet_type *ptype, struct net_device *orig_dev) x25_lapb_receive_frame()
99 x25_lapb_receive_frame(struct sk_buff *skb, struct net_device *dev, struct packet_type *ptype, struct net_device *orig_dev) x25_lapb_receive_frame() argument
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
H A Di40e_prototype.h283 static inline struct i40e_rx_ptype_decoded decode_rx_desc_ptype(u8 ptype) decode_rx_desc_ptype() argument
285 return i40e_ptype_lookup[ptype]; decode_rx_desc_ptype()
H A Di40e_fcoe.c42 * @ptype: the packet type field from rx descriptor write-back
44 static inline bool i40e_rx_is_fcoe(u16 ptype) i40e_rx_is_fcoe() argument
46 return (ptype >= I40E_RX_PTYPE_L2_FCOE_PAY3) && i40e_rx_is_fcoe()
47 (ptype <= I40E_RX_PTYPE_L2_FCOE_VFT_FCOTHER); i40e_rx_is_fcoe()
700 u16 ptype; i40e_fcoe_handle_offload() local
707 ptype = (qw & I40E_RXD_QW1_PTYPE_MASK) >> I40E_RXD_QW1_PTYPE_SHIFT; i40e_fcoe_handle_offload()
708 if (!i40e_rx_is_fcoe(ptype)) i40e_fcoe_handle_offload()
H A Di40e_txrx.c1366 * @rx_ptype: ptype value of last descriptor in packet
1490 * @ptype: the ptype value from the descriptor
1494 static inline enum pkt_hash_types i40e_ptype_to_hash(u8 ptype) i40e_ptype_to_hash() argument
1496 struct i40e_rx_ptype_decoded decoded = decode_rx_desc_ptype(ptype); i40e_ptype_to_hash()
H A Di40e_type.h679 u32 ptype:8; member in struct:i40e_rx_ptype_decoded
H A Di40e_common.c180 /* The i40e_ptype_lookup table is used to convert from the 8-bit ptype in the
193 * IF NOT i40e_ptype_lookup[ptype].known
196 * ELSE IF i40e_ptype_lookup[ptype].outer_ip == I40E_RX_PTYPE_OUTER_IP
/linux-4.1.27/arch/x86/include/asm/
H A Dparavirt.h851 #define _PVSITE(ptype, clobbers, ops, word, algn) \
858 .byte ptype; \
893 #define PARA_SITE(ptype, clobbers, ops) _PVSITE(ptype, clobbers, ops, .quad, 8)
908 #define PARA_SITE(ptype, clobbers, ops) _PVSITE(ptype, clobbers, ops, .long, 4)
/linux-4.1.27/drivers/isdn/icn/
H A Dicn.c639 card->ptype = ISDN_PTYPE_1TR6; icn_polldchan()
645 card->ptype = ISDN_PTYPE_EURO; icn_polldchan()
1271 while (card->ptype == ISDN_PTYPE_UNKNOWN) { icn_command()
1384 if (card->ptype == ISDN_PTYPE_EURO) { icn_command()
1400 if (card->ptype == ISDN_PTYPE_EURO) icn_command()
1542 card->ptype = ISDN_PTYPE_UNKNOWN; icn_initcard()
H A Dicn.h148 int ptype; /* Protocol type (1TR6 or Euro) */ member in struct:icn_card
/linux-4.1.27/drivers/net/ethernet/ti/
H A Dnetcp_ethss.c183 u32 ptype; member in struct:xgbe_switch_regs
316 u32 ptype; /* NU */ member in struct:gbenu_switch_regs
502 u32 ptype; member in struct:gbe_switch_regs
516 u16 ptype; member in struct:gbe_switch_regs_ofs
2247 writel(0, GBE_REG_ADDR(gbe_dev, switch_regs, ptype)); gbe_open()
2590 XGBE_SET_REG_OFS(gbe_dev, switch_regs, ptype); set_xgbe_ethss10_priv()
2699 GBE_SET_REG_OFS(gbe_dev, switch_regs, ptype); set_gbe_ethss14_priv()
2768 GBENU_SET_REG_OFS(gbe_dev, switch_regs, ptype); set_gbenu_ethss_priv()
H A Dcpsw.c195 u32 ptype; member in struct:cpsw_ss_regs
1282 __raw_writel(0, &priv->regs->ptype); cpsw_ndo_open()
/linux-4.1.27/net/netfilter/ipvs/
H A Dip_vs_sync.c1101 int ptype; ip_vs_proc_sync_conn() local
1106 ptype = *(p++); ip_vs_proc_sync_conn()
1112 switch (ptype & ~IPVS_OPT_F_PARAM) { ip_vs_proc_sync_conn()
1134 if (!(ptype & IPVS_OPT_F_PARAM)) { ip_vs_proc_sync_conn()
1136 ptype & ~IPVS_OPT_F_PARAM); ip_vs_proc_sync_conn()
/linux-4.1.27/drivers/infiniband/hw/ocrdma/
H A Docrdma_hw.c2801 static int ocrdma_mbx_get_dcbx_config(struct ocrdma_dev *dev, u32 ptype, ocrdma_mbx_get_dcbx_config() argument
2831 req->param_type = ptype; ocrdma_mbx_get_dcbx_config()
2850 static int ocrdma_parse_dcbxcfg_rsp(struct ocrdma_dev *dev, int ptype, ocrdma_parse_dcbxcfg_rsp() argument
2870 (ptype > 0 ? "operational" : "admin"), ocrdma_parse_dcbxcfg_rsp()
2931 int ptype = OCRDMA_PARAMETER_TYPE_OPER; ocrdma_init_service_level() local
2934 status = ocrdma_mbx_get_dcbx_config(dev, ptype, &dcbxcfg); ocrdma_init_service_level()
2937 ptype = OCRDMA_PARAMETER_TYPE_ADMIN; ocrdma_init_service_level()
2941 status = ocrdma_parse_dcbxcfg_rsp(dev, ptype, ocrdma_init_service_level()
2944 ptype = OCRDMA_PARAMETER_TYPE_ADMIN; ocrdma_init_service_level()
/linux-4.1.27/drivers/scsi/bnx2fc/
H A Dbnx2fc_fcoe.c401 * @ptype: context
407 struct packet_type *ptype, struct net_device *olddev) bnx2fc_rcv()
418 interface = container_of(ptype, struct bnx2fc_interface, bnx2fc_rcv()
1000 * @ptype: the &packet_type structure which was used to register this handler.
1006 struct packet_type *ptype, bnx2fc_fip_recv()
1011 interface = container_of(ptype, struct bnx2fc_interface, bnx2fc_fip_recv()
406 bnx2fc_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *ptype, struct net_device *olddev) bnx2fc_rcv() argument
1005 bnx2fc_fip_recv(struct sk_buff *skb, struct net_device *dev, struct packet_type *ptype, struct net_device *orig_dev) bnx2fc_fip_recv() argument
/linux-4.1.27/drivers/net/can/softing/
H A Dsofting_fw.c105 static int fw_parse(const uint8_t **pmem, uint16_t *ptype, uint32_t *paddr, fw_parse() argument
128 *ptype = le16_to_cpup((void *)&mem[0]); fw_parse()
/linux-4.1.27/drivers/net/wan/
H A Dlapbether.c90 static int lapbeth_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *ptype, struct net_device *orig_dev) lapbeth_rcv() argument
/linux-4.1.27/net/batman-adv/
H A Dmain.h204 struct packet_type *ptype,
H A Dmain.c359 struct packet_type *ptype, batadv_batman_skb_recv()
368 hard_iface = container_of(ptype, struct batadv_hard_iface, batadv_batman_skb_recv()
358 batadv_batman_skb_recv(struct sk_buff *skb, struct net_device *dev, struct packet_type *ptype, struct net_device *orig_dev) batadv_batman_skb_recv() argument
/linux-4.1.27/drivers/scsi/fcoe/
H A Dfcoe.c513 * @ptype: The packet_type structure which was used to register this handler
520 struct packet_type *ptype, fcoe_fip_recv()
526 fcoe = container_of(ptype, struct fcoe_interface, fip_packet_type); fcoe_fip_recv()
1421 * @ptype: The packet type context
1430 struct packet_type *ptype, struct net_device *olddev) fcoe_rcv()
1441 fcoe = container_of(ptype, struct fcoe_interface, fcoe_packet_type); fcoe_rcv()
519 fcoe_fip_recv(struct sk_buff *skb, struct net_device *netdev, struct packet_type *ptype, struct net_device *orig_dev) fcoe_fip_recv() argument
1429 fcoe_rcv(struct sk_buff *skb, struct net_device *netdev, struct packet_type *ptype, struct net_device *olddev) fcoe_rcv() argument
/linux-4.1.27/drivers/net/hamradio/
H A Dbpqether.c179 static int bpq_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *ptype, struct net_device *orig_dev) bpq_rcv() argument
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
H A Dd3.c398 enum iwl_mvm_tcp_packet_type ptype) iwl_mvm_build_tcp_packet()
414 switch (ptype) { iwl_mvm_build_tcp_packet()
444 switch (ptype) { iwl_mvm_build_tcp_packet()
477 switch (ptype) { iwl_mvm_build_tcp_packet()
394 iwl_mvm_build_tcp_packet(struct ieee80211_vif *vif, struct cfg80211_wowlan_tcp *tcp, void *_pkt, u8 *mask, __le16 *pseudo_hdr_csum, enum iwl_mvm_tcp_packet_type ptype) iwl_mvm_build_tcp_packet() argument
/linux-4.1.27/net/irda/
H A Dirlap_frame.c1270 * Function irlap_driver_rcv (skb, netdev, ptype)
1286 struct packet_type *ptype, struct net_device *orig_dev) irlap_driver_rcv()
1285 irlap_driver_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *ptype, struct net_device *orig_dev) irlap_driver_rcv() argument
/linux-4.1.27/net/phonet/
H A Dpep.c57 static unsigned char *pep_get_sb(struct sk_buff *skb, u8 *ptype, u8 *plen, pep_get_sb() argument
71 *ptype = ph->sb_type; pep_get_sb()
/linux-4.1.27/drivers/net/ethernet/sun/
H A Dniu.c3457 int ptype; niu_process_rx_pkt() local
3459 ptype = (val >> RCR_ENTRY_PKT_TYPE_SHIFT); niu_process_rx_pkt()
3460 if ((ptype == RCR_PKT_TYPE_TCP || niu_process_rx_pkt()
3461 ptype == RCR_PKT_TYPE_UDP) && niu_process_rx_pkt()
9458 union niu_parent_id *id, u8 ptype) niu_new_parent()
9486 p->plat_type = ptype; niu_new_parent()
9522 union niu_parent_id *id, u8 ptype) niu_get_parent()
9536 p = niu_new_parent(np, id, ptype); niu_get_parent()
9457 niu_new_parent(struct niu *np, union niu_parent_id *id, u8 ptype) niu_new_parent() argument
9521 niu_get_parent(struct niu *np, union niu_parent_id *id, u8 ptype) niu_get_parent() argument
/linux-4.1.27/drivers/net/fddi/skfp/
H A Dsmt.c1574 int ptype ; member in struct:smt_pdef
1862 if (pd->ptype == type) smt_swap_para()
/linux-4.1.27/drivers/scsi/
H A Dscsi_debug.c4098 module_param_named(ptype, scsi_debug_ptype, int, S_IRUGO | S_IWUSR);
4145 MODULE_PARM_DESC(ptype, "SCSI peripheral type(def=0[disk])");
4351 static DRIVER_ATTR_RW(ptype);
/linux-4.1.27/net/packet/
H A Daf_packet.c1420 static bool match_fanout_group(struct packet_type *ptype, struct sock *sk) match_fanout_group() argument
1422 if (ptype->af_packet_priv == (void *)((struct packet_sock *)sk)->fanout) match_fanout_group()

Completed in 2686 milliseconds