/drivers/scsi/libfc/ |
D | fc_fcp.c | 138 struct fc_fcp_pkt *fsp; in fc_fcp_pkt_alloc() local 140 fsp = mempool_alloc(si->scsi_pkt_pool, gfp); in fc_fcp_pkt_alloc() 141 if (fsp) { in fc_fcp_pkt_alloc() 142 memset(fsp, 0, sizeof(*fsp)); in fc_fcp_pkt_alloc() 143 fsp->lp = lport; in fc_fcp_pkt_alloc() 144 fsp->xfer_ddp = FC_XID_UNKNOWN; in fc_fcp_pkt_alloc() 145 refcount_set(&fsp->ref_cnt, 1); in fc_fcp_pkt_alloc() 146 timer_setup(&fsp->timer, NULL, 0); in fc_fcp_pkt_alloc() 147 INIT_LIST_HEAD(&fsp->list); in fc_fcp_pkt_alloc() 148 spin_lock_init(&fsp->scsi_pkt_lock); in fc_fcp_pkt_alloc() [all …]
|
D | fc_libfc.h | 98 void fc_fcp_ddp_setup(struct fc_fcp_pkt *fsp, u16 xid); 99 void fc_fcp_ddp_done(struct fc_fcp_pkt *fsp);
|
D | fc_exch.c | 2170 struct fc_fcp_pkt *fsp = NULL; in fc_exch_seq_send() local 2194 fsp = fr_fsp(fp); in fc_exch_seq_send() 2210 if (fsp) in fc_exch_seq_send() 2211 fc_fcp_ddp_done(fsp); in fc_exch_seq_send()
|
/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_filters.c | 9 aq_rule_is_approve(struct ethtool_rx_flow_spec *fsp) in aq_rule_is_approve() argument 11 if (fsp->flow_type & FLOW_MAC_EXT) in aq_rule_is_approve() 14 switch (fsp->flow_type & ~FLOW_EXT) { in aq_rule_is_approve() 26 switch (fsp->h_u.usr_ip4_spec.proto) { in aq_rule_is_approve() 36 switch (fsp->h_u.usr_ip6_spec.l4_proto) { in aq_rule_is_approve() 68 struct ethtool_rx_flow_spec *fsp) in aq_rule_already_exists() argument 76 if (rule->aq_fsp.location == fsp->location) in aq_rule_already_exists() 78 if (aq_match_filter(&rule->aq_fsp, fsp)) { in aq_rule_already_exists() 90 struct ethtool_rx_flow_spec *fsp) in aq_check_approve_fl3l4() argument 92 if (fsp->location < AQ_RX_FIRST_LOC_FL3L4 || in aq_check_approve_fl3l4() [all …]
|
/drivers/net/ethernet/cisco/enic/ |
D | enic_ethtool.c | 441 struct ethtool_rx_flow_spec *fsp = in enic_grxclsrule() local 445 n = htbl_fltr_search(enic, (u16)fsp->location); in enic_grxclsrule() 450 fsp->flow_type = TCP_V4_FLOW; in enic_grxclsrule() 453 fsp->flow_type = UDP_V4_FLOW; in enic_grxclsrule() 460 fsp->h_u.tcp_ip4_spec.ip4src = flow_get_u32_src(&n->keys); in enic_grxclsrule() 461 fsp->m_u.tcp_ip4_spec.ip4src = (__u32)~0; in enic_grxclsrule() 463 fsp->h_u.tcp_ip4_spec.ip4dst = flow_get_u32_dst(&n->keys); in enic_grxclsrule() 464 fsp->m_u.tcp_ip4_spec.ip4dst = (__u32)~0; in enic_grxclsrule() 466 fsp->h_u.tcp_ip4_spec.psrc = n->keys.ports.src; in enic_grxclsrule() 467 fsp->m_u.tcp_ip4_spec.psrc = (__u16)~0; in enic_grxclsrule() [all …]
|
/drivers/net/ethernet/intel/igc/ |
D | igc_ethtool.c | 881 struct ethtool_rx_flow_spec *fsp = &cmd->fs; in igc_get_ethtool_nfc_entry() local 888 if (fsp->location <= rule->sw_idx) in igc_get_ethtool_nfc_entry() 892 if (!rule || fsp->location != rule->sw_idx) in igc_get_ethtool_nfc_entry() 896 fsp->flow_type = ETHER_FLOW; in igc_get_ethtool_nfc_entry() 897 fsp->ring_cookie = rule->action; in igc_get_ethtool_nfc_entry() 899 fsp->h_u.ether_spec.h_proto = rule->filter.etype; in igc_get_ethtool_nfc_entry() 900 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; in igc_get_ethtool_nfc_entry() 903 fsp->flow_type |= FLOW_EXT; in igc_get_ethtool_nfc_entry() 904 fsp->h_ext.vlan_tci = rule->filter.vlan_tci; in igc_get_ethtool_nfc_entry() 905 fsp->m_ext.vlan_tci = htons(VLAN_PRIO_MASK); in igc_get_ethtool_nfc_entry() [all …]
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ethtool.c | 2414 struct ethtool_rx_flow_spec *fsp = in ixgbe_get_ethtool_fdir_entry() local 2424 if (fsp->location <= rule->sw_idx) in ixgbe_get_ethtool_fdir_entry() 2428 if (!rule || fsp->location != rule->sw_idx) in ixgbe_get_ethtool_fdir_entry() 2436 fsp->flow_type = TCP_V4_FLOW; in ixgbe_get_ethtool_fdir_entry() 2439 fsp->flow_type = UDP_V4_FLOW; in ixgbe_get_ethtool_fdir_entry() 2442 fsp->flow_type = SCTP_V4_FLOW; in ixgbe_get_ethtool_fdir_entry() 2445 fsp->flow_type = IP_USER_FLOW; in ixgbe_get_ethtool_fdir_entry() 2446 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in ixgbe_get_ethtool_fdir_entry() 2447 fsp->h_u.usr_ip4_spec.proto = 0; in ixgbe_get_ethtool_fdir_entry() 2448 fsp->m_u.usr_ip4_spec.proto = 0; in ixgbe_get_ethtool_fdir_entry() [all …]
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 3090 static int i40e_parse_rx_flow_user_data(struct ethtool_rx_flow_spec *fsp, in i40e_parse_rx_flow_user_data() argument 3099 if (!(fsp->flow_type & FLOW_EXT)) in i40e_parse_rx_flow_user_data() 3102 value = be64_to_cpu(*((__be64 *)fsp->h_ext.data)); in i40e_parse_rx_flow_user_data() 3103 mask = be64_to_cpu(*((__be64 *)fsp->m_ext.data)); in i40e_parse_rx_flow_user_data() 3130 static void i40e_fill_rx_flow_user_data(struct ethtool_rx_flow_spec *fsp, in i40e_fill_rx_flow_user_data() argument 3142 fsp->flow_type |= FLOW_EXT; in i40e_fill_rx_flow_user_data() 3144 *((__be64 *)fsp->h_ext.data) = cpu_to_be64(value); in i40e_fill_rx_flow_user_data() 3145 *((__be64 *)fsp->m_ext.data) = cpu_to_be64(mask); in i40e_fill_rx_flow_user_data() 3197 struct ethtool_rx_flow_spec *fsp = in i40e_get_ethtool_fdir_entry() local 3207 if (fsp->location <= rule->fd_id) in i40e_get_ethtool_fdir_entry() [all …]
|
/drivers/net/ethernet/qlogic/qede/ |
D | qede_filter.c | 1402 struct ethtool_rx_flow_spec *fsp = &cmd->fs; in qede_get_cls_rule_entry() local 1416 fsp->location); in qede_get_cls_rule_entry() 1419 fsp->location); in qede_get_cls_rule_entry() 1426 fsp->flow_type = TCP_V4_FLOW; in qede_get_cls_rule_entry() 1428 fsp->flow_type = UDP_V4_FLOW; in qede_get_cls_rule_entry() 1430 fsp->h_u.tcp_ip4_spec.psrc = fltr->tuple.src_port; in qede_get_cls_rule_entry() 1431 fsp->h_u.tcp_ip4_spec.pdst = fltr->tuple.dst_port; in qede_get_cls_rule_entry() 1432 fsp->h_u.tcp_ip4_spec.ip4src = fltr->tuple.src_ipv4; in qede_get_cls_rule_entry() 1433 fsp->h_u.tcp_ip4_spec.ip4dst = fltr->tuple.dst_ipv4; in qede_get_cls_rule_entry() 1436 fsp->flow_type = TCP_V6_FLOW; in qede_get_cls_rule_entry() [all …]
|
/drivers/net/ethernet/intel/igb/ |
D | igb_ethtool.c | 2454 struct ethtool_rx_flow_spec *fsp = &cmd->fs; in igb_get_ethtool_nfc_entry() local 2461 if (fsp->location <= rule->sw_idx) in igb_get_ethtool_nfc_entry() 2465 if (!rule || fsp->location != rule->sw_idx) in igb_get_ethtool_nfc_entry() 2469 fsp->flow_type = ETHER_FLOW; in igb_get_ethtool_nfc_entry() 2470 fsp->ring_cookie = rule->action; in igb_get_ethtool_nfc_entry() 2472 fsp->h_u.ether_spec.h_proto = rule->filter.etype; in igb_get_ethtool_nfc_entry() 2473 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; in igb_get_ethtool_nfc_entry() 2476 fsp->flow_type |= FLOW_EXT; in igb_get_ethtool_nfc_entry() 2477 fsp->h_ext.vlan_tci = rule->filter.vlan_tci; in igb_get_ethtool_nfc_entry() 2478 fsp->m_ext.vlan_tci = htons(VLAN_PRIO_MASK); in igb_get_ethtool_nfc_entry() [all …]
|
/drivers/net/ethernet/mediatek/ |
D | mtk_eth_soc.c | 1847 struct ethtool_rx_flow_spec *fsp = in mtk_hwlro_add_ipaddr() local 1853 if ((fsp->flow_type != TCP_V4_FLOW) || in mtk_hwlro_add_ipaddr() 1854 (!fsp->h_u.tcp_ip4_spec.ip4dst) || in mtk_hwlro_add_ipaddr() 1855 (fsp->location > 1)) in mtk_hwlro_add_ipaddr() 1858 mac->hwlro_ip[fsp->location] = htonl(fsp->h_u.tcp_ip4_spec.ip4dst); in mtk_hwlro_add_ipaddr() 1859 hwlro_idx = (mac->id * MTK_MAX_LRO_IP_CNT) + fsp->location; in mtk_hwlro_add_ipaddr() 1863 mtk_hwlro_val_ipaddr(eth, hwlro_idx, mac->hwlro_ip[fsp->location]); in mtk_hwlro_add_ipaddr() 1871 struct ethtool_rx_flow_spec *fsp = in mtk_hwlro_del_ipaddr() local 1877 if (fsp->location > 1) in mtk_hwlro_del_ipaddr() 1880 mac->hwlro_ip[fsp->location] = 0; in mtk_hwlro_del_ipaddr() [all …]
|
/drivers/net/ethernet/sun/ |
D | niu.c | 7077 struct ethtool_rx_flow_spec *fsp) in niu_get_ip4fs_from_tcam_key() argument 7083 fsp->h_u.tcp_ip4_spec.ip4src = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7086 fsp->h_u.tcp_ip4_spec.ip4dst = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7089 fsp->m_u.tcp_ip4_spec.ip4src = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7092 fsp->m_u.tcp_ip4_spec.ip4dst = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7094 fsp->h_u.tcp_ip4_spec.tos = (tp->key[2] & TCAM_V4KEY2_TOS) >> in niu_get_ip4fs_from_tcam_key() 7096 fsp->m_u.tcp_ip4_spec.tos = (tp->key_mask[2] & TCAM_V4KEY2_TOS) >> in niu_get_ip4fs_from_tcam_key() 7099 switch (fsp->flow_type) { in niu_get_ip4fs_from_tcam_key() 7105 fsp->h_u.tcp_ip4_spec.psrc = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key() 7109 fsp->h_u.tcp_ip4_spec.pdst = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key() [all …]
|
/drivers/infiniband/hw/cxgb4/ |
D | restrack.c | 141 struct t4_swsqe *fsp = NULL, *lsp = NULL; in fill_res_qp_entry() local 164 fsp = &first_sqe; in fill_res_qp_entry() 178 if (fill_swsqes(msg, &wq.sq, first_sq_idx, fsp, last_sq_idx, lsp)) in fill_res_qp_entry()
|