/Linux-v4.19/drivers/scsi/libfc/ |
D | fc_fcp.c | 150 struct fc_fcp_pkt *fsp; in fc_fcp_pkt_alloc() local 152 fsp = mempool_alloc(si->scsi_pkt_pool, gfp); in fc_fcp_pkt_alloc() 153 if (fsp) { in fc_fcp_pkt_alloc() 154 memset(fsp, 0, sizeof(*fsp)); in fc_fcp_pkt_alloc() 155 fsp->lp = lport; in fc_fcp_pkt_alloc() 156 fsp->xfer_ddp = FC_XID_UNKNOWN; in fc_fcp_pkt_alloc() 157 refcount_set(&fsp->ref_cnt, 1); in fc_fcp_pkt_alloc() 158 timer_setup(&fsp->timer, NULL, 0); in fc_fcp_pkt_alloc() 159 INIT_LIST_HEAD(&fsp->list); in fc_fcp_pkt_alloc() 160 spin_lock_init(&fsp->scsi_pkt_lock); in fc_fcp_pkt_alloc() [all …]
|
D | fc_libfc.h | 110 void fc_fcp_ddp_setup(struct fc_fcp_pkt *fsp, u16 xid); 111 void fc_fcp_ddp_done(struct fc_fcp_pkt *fsp);
|
D | fc_exch.c | 2182 struct fc_fcp_pkt *fsp = NULL; in fc_exch_seq_send() local 2206 fsp = fr_fsp(fp); in fc_exch_seq_send() 2222 if (fsp) in fc_exch_seq_send() 2223 fc_fcp_ddp_done(fsp); in fc_exch_seq_send()
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ethtool.c | 2411 struct ethtool_rx_flow_spec *fsp = in ixgbe_get_ethtool_fdir_entry() local 2421 if (fsp->location <= rule->sw_idx) in ixgbe_get_ethtool_fdir_entry() 2425 if (!rule || fsp->location != rule->sw_idx) in ixgbe_get_ethtool_fdir_entry() 2433 fsp->flow_type = TCP_V4_FLOW; in ixgbe_get_ethtool_fdir_entry() 2436 fsp->flow_type = UDP_V4_FLOW; in ixgbe_get_ethtool_fdir_entry() 2439 fsp->flow_type = SCTP_V4_FLOW; in ixgbe_get_ethtool_fdir_entry() 2442 fsp->flow_type = IP_USER_FLOW; in ixgbe_get_ethtool_fdir_entry() 2443 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in ixgbe_get_ethtool_fdir_entry() 2444 fsp->h_u.usr_ip4_spec.proto = 0; in ixgbe_get_ethtool_fdir_entry() 2445 fsp->m_u.usr_ip4_spec.proto = 0; in ixgbe_get_ethtool_fdir_entry() [all …]
|
/Linux-v4.19/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 2748 static int i40e_parse_rx_flow_user_data(struct ethtool_rx_flow_spec *fsp, in i40e_parse_rx_flow_user_data() argument 2757 if (!(fsp->flow_type & FLOW_EXT)) in i40e_parse_rx_flow_user_data() 2760 value = be64_to_cpu(*((__be64 *)fsp->h_ext.data)); in i40e_parse_rx_flow_user_data() 2761 mask = be64_to_cpu(*((__be64 *)fsp->m_ext.data)); in i40e_parse_rx_flow_user_data() 2788 static void i40e_fill_rx_flow_user_data(struct ethtool_rx_flow_spec *fsp, in i40e_fill_rx_flow_user_data() argument 2800 fsp->flow_type |= FLOW_EXT; in i40e_fill_rx_flow_user_data() 2802 *((__be64 *)fsp->h_ext.data) = cpu_to_be64(value); in i40e_fill_rx_flow_user_data() 2803 *((__be64 *)fsp->m_ext.data) = cpu_to_be64(mask); in i40e_fill_rx_flow_user_data() 2855 struct ethtool_rx_flow_spec *fsp = in i40e_get_ethtool_fdir_entry() local 2865 if (fsp->location <= rule->fd_id) in i40e_get_ethtool_fdir_entry() [all …]
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/drivers/net/ethernet/intel/igb/ |
D | igb_ethtool.c | 2451 struct ethtool_rx_flow_spec *fsp = &cmd->fs; in igb_get_ethtool_nfc_entry() local 2458 if (fsp->location <= rule->sw_idx) in igb_get_ethtool_nfc_entry() 2462 if (!rule || fsp->location != rule->sw_idx) in igb_get_ethtool_nfc_entry() 2466 fsp->flow_type = ETHER_FLOW; in igb_get_ethtool_nfc_entry() 2467 fsp->ring_cookie = rule->action; in igb_get_ethtool_nfc_entry() 2469 fsp->h_u.ether_spec.h_proto = rule->filter.etype; in igb_get_ethtool_nfc_entry() 2470 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; in igb_get_ethtool_nfc_entry() 2473 fsp->flow_type |= FLOW_EXT; in igb_get_ethtool_nfc_entry() 2474 fsp->h_ext.vlan_tci = rule->filter.vlan_tci; in igb_get_ethtool_nfc_entry() 2475 fsp->m_ext.vlan_tci = htons(VLAN_PRIO_MASK); in igb_get_ethtool_nfc_entry() [all …]
|
/Linux-v4.19/tools/perf/util/ |
D | probe-finder.c | 737 struct find_scope_param *fsp = data; in find_best_scope_cb() local 742 if (fsp->file) { in find_best_scope_cb() 744 if (!file || strcmp(fsp->file, file) != 0) in find_best_scope_cb() 748 if (fsp->function) { in find_best_scope_cb() 749 if (die_match_name(fn_die, fsp->function)) { in find_best_scope_cb() 750 memcpy(fsp->die_mem, fn_die, sizeof(Dwarf_Die)); in find_best_scope_cb() 751 fsp->found = true; in find_best_scope_cb() 757 if (lno < fsp->line && fsp->diff > fsp->line - lno) { in find_best_scope_cb() 759 fsp->diff = fsp->line - lno; in find_best_scope_cb() 760 memcpy(fsp->die_mem, fn_die, sizeof(Dwarf_Die)); in find_best_scope_cb() [all …]
|
/Linux-v4.19/drivers/net/ethernet/mediatek/ |
D | mtk_eth_soc.c | 1512 struct ethtool_rx_flow_spec *fsp = in mtk_hwlro_add_ipaddr() local 1518 if ((fsp->flow_type != TCP_V4_FLOW) || in mtk_hwlro_add_ipaddr() 1519 (!fsp->h_u.tcp_ip4_spec.ip4dst) || in mtk_hwlro_add_ipaddr() 1520 (fsp->location > 1)) in mtk_hwlro_add_ipaddr() 1523 mac->hwlro_ip[fsp->location] = htonl(fsp->h_u.tcp_ip4_spec.ip4dst); in mtk_hwlro_add_ipaddr() 1524 hwlro_idx = (mac->id * MTK_MAX_LRO_IP_CNT) + fsp->location; in mtk_hwlro_add_ipaddr() 1528 mtk_hwlro_val_ipaddr(eth, hwlro_idx, mac->hwlro_ip[fsp->location]); in mtk_hwlro_add_ipaddr() 1536 struct ethtool_rx_flow_spec *fsp = in mtk_hwlro_del_ipaddr() local 1542 if (fsp->location > 1) in mtk_hwlro_del_ipaddr() 1545 mac->hwlro_ip[fsp->location] = 0; in mtk_hwlro_del_ipaddr() [all …]
|
/Linux-v4.19/drivers/net/ethernet/sun/ |
D | niu.c | 7079 struct ethtool_rx_flow_spec *fsp) in niu_get_ip4fs_from_tcam_key() argument 7085 fsp->h_u.tcp_ip4_spec.ip4src = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7088 fsp->h_u.tcp_ip4_spec.ip4dst = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7091 fsp->m_u.tcp_ip4_spec.ip4src = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7094 fsp->m_u.tcp_ip4_spec.ip4dst = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7096 fsp->h_u.tcp_ip4_spec.tos = (tp->key[2] & TCAM_V4KEY2_TOS) >> in niu_get_ip4fs_from_tcam_key() 7098 fsp->m_u.tcp_ip4_spec.tos = (tp->key_mask[2] & TCAM_V4KEY2_TOS) >> in niu_get_ip4fs_from_tcam_key() 7101 switch (fsp->flow_type) { in niu_get_ip4fs_from_tcam_key() 7107 fsp->h_u.tcp_ip4_spec.psrc = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key() 7111 fsp->h_u.tcp_ip4_spec.pdst = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key() [all …]
|
/Linux-v4.19/include/scsi/ |
D | libfc.h | 890 static inline bool fc_fcp_is_read(const struct fc_fcp_pkt *fsp) in fc_fcp_is_read() argument 892 if (fsp && fsp->cmd) in fc_fcp_is_read() 893 return fsp->cmd->sc_data_direction == DMA_FROM_DEVICE; in fc_fcp_is_read()
|
/Linux-v4.19/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()
|