/linux-6.1.9/drivers/scsi/libfc/ |
D | fc_fcp.c | 134 struct fc_fcp_pkt *fsp; in fc_fcp_pkt_alloc() local 136 fsp = mempool_alloc(si->scsi_pkt_pool, gfp); in fc_fcp_pkt_alloc() 137 if (fsp) { in fc_fcp_pkt_alloc() 138 memset(fsp, 0, sizeof(*fsp)); in fc_fcp_pkt_alloc() 139 fsp->lp = lport; in fc_fcp_pkt_alloc() 140 fsp->xfer_ddp = FC_XID_UNKNOWN; in fc_fcp_pkt_alloc() 141 refcount_set(&fsp->ref_cnt, 1); in fc_fcp_pkt_alloc() 142 timer_setup(&fsp->timer, NULL, 0); in fc_fcp_pkt_alloc() 143 INIT_LIST_HEAD(&fsp->list); in fc_fcp_pkt_alloc() 144 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 | 2186 struct fc_fcp_pkt *fsp = NULL; in fc_exch_seq_send() local 2210 fsp = fr_fsp(fp); in fc_exch_seq_send() 2226 if (fsp) in fc_exch_seq_send() 2227 fc_fcp_ddp_done(fsp); in fc_exch_seq_send()
|
/linux-6.1.9/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 95 if (fsp->location < AQ_RX_FIRST_LOC_FL3L4 || in aq_check_approve_fl3l4() [all …]
|
/linux-6.1.9/drivers/net/ethernet/intel/iavf/ |
D | iavf_ethtool.c | 995 iavf_parse_rx_flow_user_data(struct ethtool_rx_flow_spec *fsp, in iavf_parse_rx_flow_user_data() argument 1001 if (!(fsp->flow_type & FLOW_EXT)) in iavf_parse_rx_flow_user_data() 1009 u32 value = be32_to_cpu(fsp->h_ext.data[i]); in iavf_parse_rx_flow_user_data() 1010 u32 mask = be32_to_cpu(fsp->m_ext.data[i]); in iavf_parse_rx_flow_user_data() 1041 iavf_fill_rx_flow_ext_data(struct ethtool_rx_flow_spec *fsp, in iavf_fill_rx_flow_ext_data() argument 1047 fsp->flow_type |= FLOW_EXT; in iavf_fill_rx_flow_ext_data() 1049 memcpy(fsp->h_ext.data, fltr->ext_data.usr_def, sizeof(fsp->h_ext.data)); in iavf_fill_rx_flow_ext_data() 1050 memcpy(fsp->m_ext.data, fltr->ext_mask.usr_def, sizeof(fsp->m_ext.data)); in iavf_fill_rx_flow_ext_data() 1064 struct ethtool_rx_flow_spec *fsp = (struct ethtool_rx_flow_spec *)&cmd->fs; in iavf_get_ethtool_fdir_entry() local 1073 rule = iavf_find_fdir_fltr_by_loc(adapter, fsp->location); in iavf_get_ethtool_fdir_entry() [all …]
|
/linux-6.1.9/drivers/net/ethernet/intel/ice/ |
D | ice_ethtool_fdir.c | 118 struct ethtool_rx_flow_spec *fsp; in ice_get_ethtool_fdir_entry() local 123 fsp = (struct ethtool_rx_flow_spec *)&cmd->fs; in ice_get_ethtool_fdir_entry() 127 rule = ice_fdir_find_fltr_by_idx(hw, fsp->location); in ice_get_ethtool_fdir_entry() 129 if (!rule || fsp->location != rule->fltr_id) { in ice_get_ethtool_fdir_entry() 134 fsp->flow_type = ice_fltr_to_ethtool_flow(rule->flow_type); in ice_get_ethtool_fdir_entry() 136 memset(&fsp->m_u, 0, sizeof(fsp->m_u)); in ice_get_ethtool_fdir_entry() 137 memset(&fsp->m_ext, 0, sizeof(fsp->m_ext)); in ice_get_ethtool_fdir_entry() 139 switch (fsp->flow_type) { in ice_get_ethtool_fdir_entry() 141 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in ice_get_ethtool_fdir_entry() 142 fsp->h_u.usr_ip4_spec.proto = 0; in ice_get_ethtool_fdir_entry() [all …]
|
/linux-6.1.9/drivers/net/ethernet/engleder/ |
D | tsnep_rxnfc.c | 97 struct ethtool_rx_flow_spec *fsp = &cmd->fs; in tsnep_rxnfc_get_rule() local 104 rule = tsnep_get_rule(adapter, fsp->location); in tsnep_rxnfc_get_rule() 111 fsp->flow_type = ETHER_FLOW; in tsnep_rxnfc_get_rule() 112 fsp->ring_cookie = rule->queue_index; in tsnep_rxnfc_get_rule() 115 fsp->h_u.ether_spec.h_proto = htons(rule->filter.ether_type); in tsnep_rxnfc_get_rule() 116 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; in tsnep_rxnfc_get_rule() 172 const struct ethtool_rx_flow_spec *fsp) in tsnep_rxnfc_init_rule() argument 176 rule->queue_index = fsp->ring_cookie; in tsnep_rxnfc_init_rule() 177 rule->location = fsp->location; in tsnep_rxnfc_init_rule() 180 rule->filter.ether_type = ntohs(fsp->h_u.ether_spec.h_proto); in tsnep_rxnfc_init_rule() [all …]
|
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_flows.c | 503 static int otx2_prepare_ipv4_flow(struct ethtool_rx_flow_spec *fsp, in otx2_prepare_ipv4_flow() argument 507 struct ethtool_usrip4_spec *ipv4_usr_mask = &fsp->m_u.usr_ip4_spec; in otx2_prepare_ipv4_flow() 508 struct ethtool_usrip4_spec *ipv4_usr_hdr = &fsp->h_u.usr_ip4_spec; in otx2_prepare_ipv4_flow() 509 struct ethtool_tcpip4_spec *ipv4_l4_mask = &fsp->m_u.tcp_ip4_spec; in otx2_prepare_ipv4_flow() 510 struct ethtool_tcpip4_spec *ipv4_l4_hdr = &fsp->h_u.tcp_ip4_spec; in otx2_prepare_ipv4_flow() 511 struct ethtool_ah_espip4_spec *ah_esp_hdr = &fsp->h_u.ah_ip4_spec; in otx2_prepare_ipv4_flow() 512 struct ethtool_ah_espip4_spec *ah_esp_mask = &fsp->m_u.ah_ip4_spec; in otx2_prepare_ipv4_flow() 662 static int otx2_prepare_ipv6_flow(struct ethtool_rx_flow_spec *fsp, in otx2_prepare_ipv6_flow() argument 666 struct ethtool_usrip6_spec *ipv6_usr_mask = &fsp->m_u.usr_ip6_spec; in otx2_prepare_ipv6_flow() 667 struct ethtool_usrip6_spec *ipv6_usr_hdr = &fsp->h_u.usr_ip6_spec; in otx2_prepare_ipv6_flow() [all …]
|
/linux-6.1.9/drivers/net/ethernet/intel/igc/ |
D | igc_ethtool.c | 955 struct ethtool_rx_flow_spec *fsp = &cmd->fs; in igc_ethtool_get_nfc_rule() local 962 rule = igc_get_nfc_rule(adapter, fsp->location); in igc_ethtool_get_nfc_rule() 966 fsp->flow_type = ETHER_FLOW; in igc_ethtool_get_nfc_rule() 967 fsp->ring_cookie = rule->action; in igc_ethtool_get_nfc_rule() 970 fsp->h_u.ether_spec.h_proto = htons(rule->filter.etype); in igc_ethtool_get_nfc_rule() 971 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; in igc_ethtool_get_nfc_rule() 975 fsp->flow_type |= FLOW_EXT; in igc_ethtool_get_nfc_rule() 976 fsp->h_ext.vlan_tci = htons(rule->filter.vlan_tci); in igc_ethtool_get_nfc_rule() 977 fsp->m_ext.vlan_tci = htons(VLAN_PRIO_MASK); in igc_ethtool_get_nfc_rule() 981 ether_addr_copy(fsp->h_u.ether_spec.h_dest, in igc_ethtool_get_nfc_rule() [all …]
|
/linux-6.1.9/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 3250 static int i40e_parse_rx_flow_user_data(struct ethtool_rx_flow_spec *fsp, in i40e_parse_rx_flow_user_data() argument 3259 if (!(fsp->flow_type & FLOW_EXT)) in i40e_parse_rx_flow_user_data() 3262 value = be64_to_cpu(*((__be64 *)fsp->h_ext.data)); in i40e_parse_rx_flow_user_data() 3263 mask = be64_to_cpu(*((__be64 *)fsp->m_ext.data)); in i40e_parse_rx_flow_user_data() 3290 static void i40e_fill_rx_flow_user_data(struct ethtool_rx_flow_spec *fsp, in i40e_fill_rx_flow_user_data() argument 3302 fsp->flow_type |= FLOW_EXT; in i40e_fill_rx_flow_user_data() 3304 *((__be64 *)fsp->h_ext.data) = cpu_to_be64(value); in i40e_fill_rx_flow_user_data() 3305 *((__be64 *)fsp->m_ext.data) = cpu_to_be64(mask); in i40e_fill_rx_flow_user_data() 3357 struct ethtool_rx_flow_spec *fsp = in i40e_get_ethtool_fdir_entry() local 3367 if (fsp->location <= rule->fd_id) in i40e_get_ethtool_fdir_entry() [all …]
|
/linux-6.1.9/drivers/net/ethernet/cisco/enic/ |
D | enic_ethtool.c | 414 struct ethtool_rx_flow_spec *fsp = in enic_grxclsrule() local 418 n = htbl_fltr_search(enic, (u16)fsp->location); in enic_grxclsrule() 423 fsp->flow_type = TCP_V4_FLOW; in enic_grxclsrule() 426 fsp->flow_type = UDP_V4_FLOW; in enic_grxclsrule() 432 fsp->h_u.tcp_ip4_spec.ip4src = flow_get_u32_src(&n->keys); in enic_grxclsrule() 433 fsp->m_u.tcp_ip4_spec.ip4src = (__u32)~0; in enic_grxclsrule() 435 fsp->h_u.tcp_ip4_spec.ip4dst = flow_get_u32_dst(&n->keys); in enic_grxclsrule() 436 fsp->m_u.tcp_ip4_spec.ip4dst = (__u32)~0; in enic_grxclsrule() 438 fsp->h_u.tcp_ip4_spec.psrc = n->keys.ports.src; in enic_grxclsrule() 439 fsp->m_u.tcp_ip4_spec.psrc = (__u16)~0; in enic_grxclsrule() [all …]
|
/linux-6.1.9/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ethtool.c | 2506 struct ethtool_rx_flow_spec *fsp = in ixgbe_get_ethtool_fdir_entry() local 2516 if (fsp->location <= rule->sw_idx) in ixgbe_get_ethtool_fdir_entry() 2520 if (!rule || fsp->location != rule->sw_idx) in ixgbe_get_ethtool_fdir_entry() 2528 fsp->flow_type = TCP_V4_FLOW; in ixgbe_get_ethtool_fdir_entry() 2531 fsp->flow_type = UDP_V4_FLOW; in ixgbe_get_ethtool_fdir_entry() 2534 fsp->flow_type = SCTP_V4_FLOW; in ixgbe_get_ethtool_fdir_entry() 2537 fsp->flow_type = IP_USER_FLOW; in ixgbe_get_ethtool_fdir_entry() 2538 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in ixgbe_get_ethtool_fdir_entry() 2539 fsp->h_u.usr_ip4_spec.proto = 0; in ixgbe_get_ethtool_fdir_entry() 2540 fsp->m_u.usr_ip4_spec.proto = 0; in ixgbe_get_ethtool_fdir_entry() [all …]
|
/linux-6.1.9/drivers/net/ethernet/qlogic/qede/ |
D | qede_filter.c | 1320 struct ethtool_rx_flow_spec *fsp = &cmd->fs; in qede_get_cls_rule_entry() local 1334 fsp->location); in qede_get_cls_rule_entry() 1337 fsp->location); in qede_get_cls_rule_entry() 1344 fsp->flow_type = TCP_V4_FLOW; in qede_get_cls_rule_entry() 1346 fsp->flow_type = UDP_V4_FLOW; in qede_get_cls_rule_entry() 1348 fsp->h_u.tcp_ip4_spec.psrc = fltr->tuple.src_port; in qede_get_cls_rule_entry() 1349 fsp->h_u.tcp_ip4_spec.pdst = fltr->tuple.dst_port; in qede_get_cls_rule_entry() 1350 fsp->h_u.tcp_ip4_spec.ip4src = fltr->tuple.src_ipv4; in qede_get_cls_rule_entry() 1351 fsp->h_u.tcp_ip4_spec.ip4dst = fltr->tuple.dst_ipv4; in qede_get_cls_rule_entry() 1354 fsp->flow_type = TCP_V6_FLOW; in qede_get_cls_rule_entry() [all …]
|
/linux-6.1.9/tools/perf/util/ |
D | probe-finder.c | 760 struct find_scope_param *fsp = data; in find_best_scope_cb() local 765 if (fsp->file) { in find_best_scope_cb() 767 if (!file || strcmp(fsp->file, file) != 0) in find_best_scope_cb() 771 if (fsp->function) { in find_best_scope_cb() 772 if (die_match_name(fn_die, fsp->function)) { in find_best_scope_cb() 773 memcpy(fsp->die_mem, fn_die, sizeof(Dwarf_Die)); in find_best_scope_cb() 774 fsp->found = true; in find_best_scope_cb() 780 if (lno < fsp->line && fsp->diff > fsp->line - lno) { in find_best_scope_cb() 782 fsp->diff = fsp->line - lno; in find_best_scope_cb() 783 memcpy(fsp->die_mem, fn_die, sizeof(Dwarf_Die)); in find_best_scope_cb() [all …]
|
/linux-6.1.9/drivers/net/ethernet/intel/igb/ |
D | igb_ethtool.c | 2438 struct ethtool_rx_flow_spec *fsp = &cmd->fs; in igb_get_ethtool_nfc_entry() local 2445 if (fsp->location <= rule->sw_idx) in igb_get_ethtool_nfc_entry() 2449 if (!rule || fsp->location != rule->sw_idx) in igb_get_ethtool_nfc_entry() 2453 fsp->flow_type = ETHER_FLOW; in igb_get_ethtool_nfc_entry() 2454 fsp->ring_cookie = rule->action; in igb_get_ethtool_nfc_entry() 2456 fsp->h_u.ether_spec.h_proto = rule->filter.etype; in igb_get_ethtool_nfc_entry() 2457 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; in igb_get_ethtool_nfc_entry() 2460 fsp->flow_type |= FLOW_EXT; in igb_get_ethtool_nfc_entry() 2461 fsp->h_ext.vlan_tci = rule->filter.vlan_tci; in igb_get_ethtool_nfc_entry() 2462 fsp->m_ext.vlan_tci = htons(VLAN_PRIO_MASK); in igb_get_ethtool_nfc_entry() [all …]
|
/linux-6.1.9/include/scsi/ |
D | libfc.h | 358 struct fc_fcp_pkt *fsp; member 887 static inline bool fc_fcp_is_read(const struct fc_fcp_pkt *fsp) in fc_fcp_is_read() argument 889 if (fsp && fsp->cmd) in fc_fcp_is_read() 890 return fsp->cmd->sc_data_direction == DMA_FROM_DEVICE; in fc_fcp_is_read()
|
/linux-6.1.9/drivers/net/ethernet/sun/ |
D | niu.c | 7093 struct ethtool_rx_flow_spec *fsp) in niu_get_ip4fs_from_tcam_key() argument 7099 fsp->h_u.tcp_ip4_spec.ip4src = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7102 fsp->h_u.tcp_ip4_spec.ip4dst = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7105 fsp->m_u.tcp_ip4_spec.ip4src = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7108 fsp->m_u.tcp_ip4_spec.ip4dst = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7110 fsp->h_u.tcp_ip4_spec.tos = (tp->key[2] & TCAM_V4KEY2_TOS) >> in niu_get_ip4fs_from_tcam_key() 7112 fsp->m_u.tcp_ip4_spec.tos = (tp->key_mask[2] & TCAM_V4KEY2_TOS) >> in niu_get_ip4fs_from_tcam_key() 7115 switch (fsp->flow_type) { in niu_get_ip4fs_from_tcam_key() 7121 fsp->h_u.tcp_ip4_spec.psrc = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key() 7125 fsp->h_u.tcp_ip4_spec.pdst = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key() [all …]
|
/linux-6.1.9/drivers/net/ethernet/mediatek/ |
D | mtk_eth_soc.c | 2605 struct ethtool_rx_flow_spec *fsp = in mtk_hwlro_add_ipaddr() local 2611 if ((fsp->flow_type != TCP_V4_FLOW) || in mtk_hwlro_add_ipaddr() 2612 (!fsp->h_u.tcp_ip4_spec.ip4dst) || in mtk_hwlro_add_ipaddr() 2613 (fsp->location > 1)) in mtk_hwlro_add_ipaddr() 2616 mac->hwlro_ip[fsp->location] = htonl(fsp->h_u.tcp_ip4_spec.ip4dst); in mtk_hwlro_add_ipaddr() 2617 hwlro_idx = (mac->id * MTK_MAX_LRO_IP_CNT) + fsp->location; in mtk_hwlro_add_ipaddr() 2621 mtk_hwlro_val_ipaddr(eth, hwlro_idx, mac->hwlro_ip[fsp->location]); in mtk_hwlro_add_ipaddr() 2629 struct ethtool_rx_flow_spec *fsp = in mtk_hwlro_del_ipaddr() local 2635 if (fsp->location > 1) in mtk_hwlro_del_ipaddr() 2638 mac->hwlro_ip[fsp->location] = 0; in mtk_hwlro_del_ipaddr() [all …]
|
/linux-6.1.9/drivers/infiniband/hw/cxgb4/ |
D | restrack.c | 139 struct t4_swsqe *fsp = NULL, *lsp = NULL; in c4iw_fill_res_qp_entry() local 162 fsp = &first_sqe; in c4iw_fill_res_qp_entry() 176 if (fill_swsqes(msg, &wq.sq, first_sq_idx, fsp, last_sq_idx, lsp)) in c4iw_fill_res_qp_entry()
|
/linux-6.1.9/drivers/hwmon/pmbus/ |
D | Makefile | 13 obj-$(CONFIG_SENSORS_FSP_3Y) += fsp-3y.o
|
D | Kconfig | 87 be called fsp-3y.
|
/linux-6.1.9/Documentation/hwmon/ |
D | index.rst | 70 fsp-3y
|
/linux-6.1.9/drivers/scsi/ |
D | scsi_debug.c | 3024 u8 *fsp; in do_device_access() local 3037 fsp = sip->storep; in do_device_access() 3044 fsp + (block * sdebug_sector_size), in do_device_access() 3051 fsp, rest * sdebug_sector_size, in do_device_access() 3082 u8 *fsp = sip->storep; in comp_write_worker() local 3088 res = !memcmp(fsp + (block * lb_size), arr, (num - rest) * lb_size); in comp_write_worker() 3092 res = memcmp(fsp, arr + ((num - rest) * lb_size), in comp_write_worker() 3099 memcpy(fsp + (block * lb_size), arr, (num - rest) * lb_size); in comp_write_worker() 3101 memcpy(fsp, arr + ((num - rest) * lb_size), rest * lb_size); in comp_write_worker() 3566 u8 *fsp = sip->storep; in unmap_region() local [all …]
|