| /drivers/scsi/libfc/ |
| A D | fc_fcp.c | 138 memset(fsp, 0, sizeof(*fsp)); in fc_fcp_pkt_alloc() 567 fsp->xfer_len == fsp->data_len - fsp->scsi_resid) { in fc_fcp_recv_data() 997 fsp->xfer_len < fsp->data_len && !fsp->io_status && in fc_fcp_complete_locked() 999 fsp->xfer_len < fsp->data_len - fsp->scsi_resid)) { in fc_fcp_complete_locked() 1001 fsp->xfer_len, fsp->data_len); in fc_fcp_complete_locked() 1135 libfc_priv(fsp->cmd)->fsp = fsp; in fc_fcp_pkt_send() 1140 memcpy(fsp->cdb_cmd.fc_cdb, fsp->cmd->cmnd, fsp->cmd->cmd_len); in fc_fcp_pkt_send() 1148 libfc_priv(fsp->cmd)->fsp = NULL; in fc_fcp_pkt_send() 1658 fsp, fsp->rport->port_id); in fc_fcp_rec_error() 1674 fsp, fsp->rport->port_id, fsp->recov_retry, in fc_fcp_rec_error() [all …]
|
| A 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);
|
| /drivers/net/ethernet/google/gve/ |
| A D | gve_flow_rule.c | 33 memset(&fsp->h_u, 0, sizeof(fsp->h_u)); in gve_fill_ethtool_flow_spec() 34 memset(&fsp->h_ext, 0, sizeof(fsp->h_ext)); in gve_fill_ethtool_flow_spec() 35 memset(&fsp->m_u, 0, sizeof(fsp->m_u)); in gve_fill_ethtool_flow_spec() 36 memset(&fsp->m_ext, 0, sizeof(fsp->m_ext)); in gve_fill_ethtool_flow_spec() 38 switch (fsp->flow_type) { in gve_fill_ethtool_flow_spec() 123 if (fsp->ring_cookie == RX_CLS_FLOW_DISC) in gve_generate_flow_rule() 129 rule->action = cpu_to_be16(fsp->ring_cookie); in gve_generate_flow_rule() 154 rule->key.spi = fsp->h_u.ah_ip4_spec.spi; in gve_generate_flow_rule() 157 rule->mask.spi = fsp->m_u.ah_ip4_spec.spi; in gve_generate_flow_rule() 181 rule->key.spi = fsp->h_u.ah_ip6_spec.spi; in gve_generate_flow_rule() [all …]
|
| /drivers/net/ethernet/aquantia/atlantic/ |
| A D | aq_filters.c | 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() 186 struct ethtool_rx_flow_spec *fsp) in aq_check_filter() argument 191 if (fsp->flow_type & FLOW_EXT) { in aq_check_filter() 249 (fsp->h_u.tcp_ip4_spec.tos || in aq_rule_is_not_support() 275 fsp->location); in aq_rule_is_not_correct() 319 data->queue = fsp->ring_cookie; in aq_set_data_fl2() 493 switch (fsp->flow_type) { in aq_set_data_fl3l4() 697 memcpy(&aq_rx_fltr->aq_fsp, fsp, sizeof(*fsp)); in aq_add_rxnfc_rule() [all …]
|
| /drivers/gpu/drm/nouveau/nvkm/subdev/fsp/ |
| A D | base.c | 11 return fsp->func->cot.boot_gsp_fmc(fsp, args_addr, rsvd_size, resume, in nvkm_fsp_boot_gsp_fmc() 26 struct nvkm_fsp *fsp = nvkm_fsp(subdev); in nvkm_fsp_preinit() local 28 return fsp->func->wait_secure_boot(fsp); in nvkm_fsp_preinit() 34 struct nvkm_fsp *fsp = nvkm_fsp(subdev); in nvkm_fsp_dtor() local 36 nvkm_falcon_dtor(&fsp->falcon); in nvkm_fsp_dtor() 37 return fsp; in nvkm_fsp_dtor() 56 struct nvkm_fsp *fsp; in nvkm_fsp_new_() local 58 fsp = *pfsp = kzalloc(sizeof(*fsp), GFP_KERNEL); in nvkm_fsp_new_() 59 if (!fsp) in nvkm_fsp_new_() 62 fsp->func = func; in nvkm_fsp_new_() [all …]
|
| A D | gh100.c | 69 gh100_fsp_poll(struct nvkm_fsp *fsp) in gh100_fsp_poll() argument 71 struct nvkm_device *device = fsp->subdev.device; in gh100_fsp_poll() 86 struct nvkm_device *device = fsp->subdev.device; in gh100_fsp_recv() 90 packet_size = gh100_fsp_poll(fsp); in gh100_fsp_recv() 105 gh100_fsp_wait(struct nvkm_fsp *fsp) in gh100_fsp_wait() argument 110 if (gh100_fsp_poll(fsp)) in gh100_fsp_wait() 122 struct nvkm_device *device = fsp->subdev.device; in gh100_fsp_send() 156 struct nvkm_subdev *subdev = &fsp->subdev; in gh100_fsp_send_sync() 164 ret = gh100_fsp_send(fsp, packet, packet_size); in gh100_fsp_send_sync() 168 ret = gh100_fsp_wait(fsp); in gh100_fsp_send_sync() [all …]
|
| A D | Kbuild | 5 nvkm-y += nvkm/subdev/fsp/base.o 6 nvkm-y += nvkm/subdev/fsp/gh100.o 7 nvkm-y += nvkm/subdev/fsp/gb100.o 8 nvkm-y += nvkm/subdev/fsp/gb202.o
|
| A D | gb202.c | 11 gb202_fsp_wait_secure_boot(struct nvkm_fsp *fsp) in gb202_fsp_wait_secure_boot() argument 13 struct nvkm_device *device = fsp->subdev.device; in gb202_fsp_wait_secure_boot()
|
| /drivers/net/ethernet/intel/iavf/ |
| A D | iavf_ethtool.c | 861 if (!(fsp->flow_type & FLOW_EXT)) in iavf_parse_rx_flow_user_data() 906 fsp->flow_type |= FLOW_EXT; in iavf_fill_rx_flow_ext_data() 908 memcpy(fsp->h_ext.data, fltr->ext_data.usr_def, sizeof(fsp->h_ext.data)); in iavf_fill_rx_flow_ext_data() 909 memcpy(fsp->m_ext.data, fltr->ext_mask.usr_def, sizeof(fsp->m_ext.data)); in iavf_fill_rx_flow_ext_data() 940 memset(&fsp->m_u, 0, sizeof(fsp->m_u)); in iavf_get_ethtool_fdir_entry() 941 memset(&fsp->m_ext, 0, sizeof(fsp->m_ext)); in iavf_get_ethtool_fdir_entry() 943 switch (fsp->flow_type) { in iavf_get_ethtool_fdir_entry() 1046 fsp->ring_cookie = rule->q_index; in iavf_get_ethtool_fdir_entry() 1113 q_index = fsp->ring_cookie; in iavf_add_fdir_fltr_info() 1121 fltr->loc = fsp->location; in iavf_add_fdir_fltr_info() [all …]
|
| /drivers/net/ethernet/intel/ice/ |
| A D | ice_ethtool_fdir.c | 122 struct ethtool_rx_flow_spec *fsp; in ice_get_ethtool_fdir_entry() local 140 memset(&fsp->m_u, 0, sizeof(fsp->m_u)); in ice_get_ethtool_fdir_entry() 141 memset(&fsp->m_ext, 0, sizeof(fsp->m_ext)); in ice_get_ethtool_fdir_entry() 143 switch (fsp->flow_type) { in ice_get_ethtool_fdir_entry() 145 fsp->h_u.ether_spec = rule->eth; in ice_get_ethtool_fdir_entry() 1214 if (fsp->m_ext.vlan_etype && !eth_type_vlan(fsp->h_ext.vlan_etype)) in ice_fdir_vlan_valid() 1217 if (fsp->m_ext.vlan_tci && ntohs(fsp->h_ext.vlan_tci) >= VLAN_N_VID) in ice_fdir_vlan_valid() 1221 if (fsp->m_u.ether_spec.h_proto && fsp->m_ext.vlan_tci && in ice_fdir_vlan_valid() 1222 !fsp->m_ext.vlan_etype) { in ice_fdir_vlan_valid() 1391 if (!ret && (fsp->m_ext.vlan_etype || fsp->m_ext.vlan_tci)) { in ice_cfg_fdir_xtrct_seq() [all …]
|
| /drivers/net/ethernet/wangxun/txgbe/ |
| A D | txgbe_ethtool.c | 111 struct ethtool_rx_flow_spec *fsp = in txgbe_get_ethtool_fdir_entry() local 132 fsp->flow_type = TCP_V4_FLOW; in txgbe_get_ethtool_fdir_entry() 135 fsp->flow_type = UDP_V4_FLOW; in txgbe_get_ethtool_fdir_entry() 138 fsp->flow_type = SCTP_V4_FLOW; in txgbe_get_ethtool_fdir_entry() 141 fsp->flow_type = IP_USER_FLOW; in txgbe_get_ethtool_fdir_entry() 143 fsp->h_u.usr_ip4_spec.proto = 0; in txgbe_get_ethtool_fdir_entry() 144 fsp->m_u.usr_ip4_spec.proto = 0; in txgbe_get_ethtool_fdir_entry() 162 fsp->flow_type |= FLOW_EXT; in txgbe_get_ethtool_fdir_entry() 168 fsp->ring_cookie = rule->action; in txgbe_get_ethtool_fdir_entry() 398 input->sw_idx = fsp->location; in txgbe_add_ethtool_fdir_entry() [all …]
|
| /drivers/net/ethernet/engleder/ |
| A D | tsnep_rxnfc.c | 111 fsp->flow_type = ETHER_FLOW; in tsnep_rxnfc_get_rule() 112 fsp->ring_cookie = rule->queue_index; in tsnep_rxnfc_get_rule() 176 rule->queue_index = fsp->ring_cookie; in tsnep_rxnfc_init_rule() 177 rule->location = fsp->location; in tsnep_rxnfc_init_rule() 205 struct ethtool_rx_flow_spec *fsp = in tsnep_rxnfc_add_rule() local 211 if (fsp->flow_type != ETHER_FLOW || in tsnep_rxnfc_add_rule() 220 if (fsp->ring_cookie > in tsnep_rxnfc_add_rule() 227 if (fsp->location != RX_CLS_LOC_ANY && in tsnep_rxnfc_add_rule() 244 fsp->location = retval; in tsnep_rxnfc_add_rule() 247 tsnep_rxnfc_init_rule(rule, fsp); in tsnep_rxnfc_add_rule() [all …]
|
| /drivers/net/ethernet/meta/fbnic/ |
| A D | fbnic_ethtool.c | 588 fsp->flow_type = ETHER_FLOW; in fbnic_get_cls_rule() 647 fsp->h_u.tcp_ip6_spec.psrc = in fbnic_get_cls_rule() 649 fsp->m_u.tcp_ip6_spec.psrc = in fbnic_get_cls_rule() 651 fsp->h_u.tcp_ip6_spec.pdst = in fbnic_get_cls_rule() 653 fsp->m_u.tcp_ip6_spec.pdst = in fbnic_get_cls_rule() 699 fsp->h_u.tcp_ip4_spec.psrc = in fbnic_get_cls_rule() 701 fsp->m_u.tcp_ip4_spec.psrc = in fbnic_get_cls_rule() 703 fsp->h_u.tcp_ip4_spec.pdst = in fbnic_get_cls_rule() 705 fsp->m_u.tcp_ip4_spec.pdst = in fbnic_get_cls_rule() 748 fsp->flow_type |= FLOW_RSS; in fbnic_get_cls_rule() [all …]
|
| /drivers/net/ethernet/marvell/octeontx2/nic/ |
| A D | otx2_flows.c | 876 if (fsp->flow_type & FLOW_EXT) { in otx2_prepare_flow_request() 879 if (fsp->m_ext.vlan_etype) { in otx2_prepare_flow_request() 909 if (fsp->m_ext.vlan_tci) { in otx2_prepare_flow_request() 917 if (fsp->m_ext.data[1]) { in otx2_prepare_flow_request() 925 } else if (fsp->h_ext.data[1] == in otx2_prepare_flow_request() 935 if (fsp->flow_type & FLOW_MAC_EXT && in otx2_prepare_flow_request() 953 u64 ring_cookie = fsp->ring_cookie; in otx2_is_flow_rule_dmacfilter() 1137 flow->location = fsp->location; in otx2_add_flow() 1142 flow->flow_spec = *fsp; in otx2_add_flow() 1144 if (fsp->flow_type & FLOW_RSS) in otx2_add_flow() [all …]
|
| /drivers/net/ethernet/intel/igc/ |
| A D | igc_ethtool.c | 977 fsp->flow_type = ETHER_FLOW; in igc_ethtool_get_nfc_rule() 986 fsp->flow_type |= FLOW_EXT; in igc_ethtool_get_nfc_rule() 992 fsp->flow_type |= FLOW_EXT; in igc_ethtool_get_nfc_rule() 1011 memcpy(fsp->h_ext.data, rule->filter.user_data, sizeof(fsp->h_ext.data)); in igc_ethtool_get_nfc_rule() 1012 memcpy(fsp->m_ext.data, rule->filter.user_mask, sizeof(fsp->m_ext.data)); in igc_ethtool_get_nfc_rule() 1229 if ((fsp->flow_type & FLOW_EXT) && fsp->m_ext.vlan_tci) { in igc_ethtool_init_nfc_rule() 1256 if ((fsp->flow_type & FLOW_EXT) && fsp->h_ext.vlan_etype) { in igc_ethtool_init_nfc_rule() 1263 (fsp->h_ext.data[0] || fsp->h_ext.data[1])) { in igc_ethtool_init_nfc_rule() 1265 memcpy(rule->filter.user_data, fsp->h_ext.data, sizeof(fsp->h_ext.data)); in igc_ethtool_init_nfc_rule() 1266 memcpy(rule->filter.user_mask, fsp->m_ext.data, sizeof(fsp->m_ext.data)); in igc_ethtool_init_nfc_rule() [all …]
|
| /drivers/net/ethernet/intel/idpf/ |
| A D | idpf_ethtool.c | 70 struct ethtool_rx_flow_spec *fsp) in idpf_fsteer_fill_ipv4() argument 86 struct ethtool_rx_flow_spec *fsp, in idpf_fsteer_fill_udp() argument 110 struct ethtool_rx_flow_spec *fsp, in idpf_fsteer_fill_tcp() argument 163 if (flow_type != fsp->flow_type) in idpf_add_flow_steer() 173 q_index = fsp->ring_cookie; in idpf_add_flow_steer() 197 idpf_fsteer_fill_ipv4(hdrs, fsp); in idpf_add_flow_steer() 198 idpf_fsteer_fill_udp(hdrs, fsp, true); in idpf_add_flow_steer() 201 idpf_fsteer_fill_ipv4(hdrs, fsp); in idpf_add_flow_steer() 202 idpf_fsteer_fill_tcp(hdrs, fsp, true); in idpf_add_flow_steer() 225 fltr->loc = fsp->location; in idpf_add_flow_steer() [all …]
|
| /drivers/net/ethernet/intel/i40e/ |
| A D | i40e_ethtool.c | 3272 if (!(fsp->flow_type & FLOW_EXT)) in i40e_parse_rx_flow_user_data() 3315 fsp->flow_type |= FLOW_EXT; in i40e_fill_rx_flow_user_data() 3388 fsp->flow_type = rule->flow_type; in i40e_get_ethtool_fdir_entry() 3496 fsp->flow_type |= FLOW_EXT; in i40e_get_ethtool_fdir_entry() 3509 fsp->ring_cookie |= ring_vf; in i40e_get_ethtool_fdir_entry() 4534 if (fsp->flow_type & FLOW_EXT) { in i40e_check_fdir_input_set() 4539 fsp->h_ext.vlan_etype != 0) in i40e_check_fdir_input_set() 4642 i40e_flow_str(fsp)); in i40e_check_fdir_input_set() 4669 i40e_flow_str(fsp), in i40e_check_fdir_input_set() 4877 input->fd_id = fsp->location; in i40e_add_fdir_ethtool() [all …]
|
| /drivers/net/ethernet/intel/ixgbe/ |
| A D | ixgbe_ethtool.c | 2689 fsp->flow_type = TCP_V4_FLOW; in ixgbe_get_ethtool_fdir_entry() 2692 fsp->flow_type = UDP_V4_FLOW; in ixgbe_get_ethtool_fdir_entry() 2695 fsp->flow_type = SCTP_V4_FLOW; in ixgbe_get_ethtool_fdir_entry() 2698 fsp->flow_type = IP_USER_FLOW; in ixgbe_get_ethtool_fdir_entry() 2700 fsp->h_u.usr_ip4_spec.proto = 0; in ixgbe_get_ethtool_fdir_entry() 2701 fsp->m_u.usr_ip4_spec.proto = 0; in ixgbe_get_ethtool_fdir_entry() 2721 fsp->flow_type |= FLOW_EXT; in ixgbe_get_ethtool_fdir_entry() 2727 fsp->ring_cookie = rule->action; in ixgbe_get_ethtool_fdir_entry() 2986 input->sw_idx = fsp->location; in ixgbe_add_ethtool_fdir_entry() 3011 if (fsp->flow_type & FLOW_EXT) { in ixgbe_add_ethtool_fdir_entry() [all …]
|
| /drivers/net/ethernet/cisco/enic/ |
| A D | enic_ethtool.c | 496 struct ethtool_rx_flow_spec *fsp = in enic_grxclsrule() local 500 n = htbl_fltr_search(enic, (u16)fsp->location); in enic_grxclsrule() 505 fsp->flow_type = TCP_V4_FLOW; in enic_grxclsrule() 508 fsp->flow_type = UDP_V4_FLOW; in enic_grxclsrule() 515 fsp->m_u.tcp_ip4_spec.ip4src = (__u32)~0; in enic_grxclsrule() 518 fsp->m_u.tcp_ip4_spec.ip4dst = (__u32)~0; in enic_grxclsrule() 520 fsp->h_u.tcp_ip4_spec.psrc = n->keys.ports.src; in enic_grxclsrule() 521 fsp->m_u.tcp_ip4_spec.psrc = (__u16)~0; in enic_grxclsrule() 523 fsp->h_u.tcp_ip4_spec.pdst = n->keys.ports.dst; in enic_grxclsrule() 524 fsp->m_u.tcp_ip4_spec.pdst = (__u16)~0; in enic_grxclsrule() [all …]
|
| /drivers/net/ethernet/qlogic/qede/ |
| A D | qede_filter.c | 1331 fsp->location); in qede_get_cls_rule_entry() 1334 fsp->location); in qede_get_cls_rule_entry() 1341 fsp->flow_type = TCP_V4_FLOW; in qede_get_cls_rule_entry() 1343 fsp->flow_type = UDP_V4_FLOW; in qede_get_cls_rule_entry() 1351 fsp->flow_type = TCP_V6_FLOW; in qede_get_cls_rule_entry() 1353 fsp->flow_type = UDP_V6_FLOW; in qede_get_cls_rule_entry() 1356 memcpy(&fsp->h_u.tcp_ip6_spec.ip6src, in qede_get_cls_rule_entry() 1358 memcpy(&fsp->h_u.tcp_ip6_spec.ip6dst, in qede_get_cls_rule_entry() 1362 fsp->ring_cookie = fltr->rxq_id; in qede_get_cls_rule_entry() 1370 fsp->ring_cookie = RX_CLS_FLOW_DISC; in qede_get_cls_rule_entry() [all …]
|
| /drivers/net/ethernet/intel/igb/ |
| A D | igb_ethtool.c | 2440 if (fsp->location <= rule->sw_idx) in igb_get_ethtool_nfc_entry() 2448 fsp->flow_type = ETHER_FLOW; in igb_get_ethtool_nfc_entry() 2449 fsp->ring_cookie = rule->action; in igb_get_ethtool_nfc_entry() 2455 fsp->flow_type |= FLOW_EXT; in igb_get_ethtool_nfc_entry() 2896 struct ethtool_rx_flow_spec *fsp = in igb_add_ethtool_nfc_entry() local 2935 fsp->h_u.ether_spec.h_source); in igb_add_ethtool_nfc_entry() 2942 fsp->h_u.ether_spec.h_dest); in igb_add_ethtool_nfc_entry() 2945 if ((fsp->flow_type & FLOW_EXT) && fsp->m_ext.vlan_tci) { in igb_add_ethtool_nfc_entry() 2954 input->action = fsp->ring_cookie; in igb_add_ethtool_nfc_entry() 2955 input->sw_idx = fsp->location; in igb_add_ethtool_nfc_entry() [all …]
|
| /drivers/gpu/drm/nouveau/nvkm/subdev/gsp/ |
| A D | gh100.c | 105 ret = nvkm_fsp_boot_gsp_fmc(device->fsp, gsp->fmc.args.addr, rsvd_size, resume, in gh100_gsp_init() 267 struct nvkm_fsp *fsp = device->fsp; in gh100_gsp_oneinit() local 290 if (!nvkm_fsp_verify_gsp_fmc(fsp, hash_len, pkey_len, sig_len)) in gh100_gsp_oneinit()
|
| /drivers/net/ethernet/sun/ |
| A D | niu.c | 7140 switch (fsp->flow_type) { in niu_get_ip4fs_from_tcam_key() 7179 fsp->h_u.usr_ip4_spec.proto = in niu_get_ip4fs_from_tcam_key() 7182 fsp->m_u.usr_ip4_spec.proto = in niu_get_ip4fs_from_tcam_key() 7222 if (fsp->flow_type == AH_V4_FLOW || fsp->flow_type == AH_V6_FLOW) { in niu_get_ethtool_tcam_entry() 7226 if (fsp->flow_type == AH_V4_FLOW) in niu_get_ethtool_tcam_entry() 7227 fsp->flow_type = ESP_V4_FLOW; in niu_get_ethtool_tcam_entry() 7229 fsp->flow_type = ESP_V6_FLOW; in niu_get_ethtool_tcam_entry() 7233 switch (fsp->flow_type) { in niu_get_ethtool_tcam_entry() 7412 switch (fsp->flow_type) { in niu_get_tcamkey_from_ip4fs() 7547 switch (fsp->flow_type) { in niu_add_ethtool_tcam_entry() [all …]
|
| /drivers/infiniband/hw/cxgb4/ |
| A 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()
|
| /drivers/net/ethernet/mediatek/ |
| A D | mtk_eth_soc.c | 3072 (fsp->location > 1)) in mtk_hwlro_add_ipaddr() 3075 mac->hwlro_ip[fsp->location] = htonl(fsp->h_u.tcp_ip4_spec.ip4dst); in mtk_hwlro_add_ipaddr() 3094 if (fsp->location > 1) in mtk_hwlro_del_ipaddr() 3097 mac->hwlro_ip[fsp->location] = 0; in mtk_hwlro_del_ipaddr() 3134 fsp->flow_type = TCP_V4_FLOW; in mtk_hwlro_get_fdir_entry() 3135 fsp->h_u.tcp_ip4_spec.ip4dst = ntohl(mac->hwlro_ip[fsp->location]); in mtk_hwlro_get_fdir_entry() 3136 fsp->m_u.tcp_ip4_spec.ip4dst = 0; in mtk_hwlro_get_fdir_entry() 3138 fsp->h_u.tcp_ip4_spec.ip4src = 0; in mtk_hwlro_get_fdir_entry() 3140 fsp->h_u.tcp_ip4_spec.psrc = 0; in mtk_hwlro_get_fdir_entry() 3142 fsp->h_u.tcp_ip4_spec.pdst = 0; in mtk_hwlro_get_fdir_entry() [all …]
|