Lines Matching refs:ctx_tbl

701 	struct hinic_rss_context_tbl *ctx_tbl;  in hinic_set_rss_type()  local
734 ctx_tbl = (struct hinic_rss_context_tbl *)cmd_buf.buf; in hinic_set_rss_type()
735 ctx_tbl->group_index = cpu_to_be32(tmpl_idx); in hinic_set_rss_type()
736 ctx_tbl->offset = 0; in hinic_set_rss_type()
737 ctx_tbl->size = sizeof(u32); in hinic_set_rss_type()
738 ctx_tbl->size = cpu_to_be32(ctx_tbl->size); in hinic_set_rss_type()
739 ctx_tbl->rsvd = 0; in hinic_set_rss_type()
740 ctx_tbl->ctx = cpu_to_be32(ctx); in hinic_set_rss_type()
761 struct hinic_rss_context_table ctx_tbl = { 0 }; in hinic_get_rss_type() local
763 u16 out_size = sizeof(ctx_tbl); in hinic_get_rss_type()
774 ctx_tbl.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_get_rss_type()
775 ctx_tbl.template_id = tmpl_idx; in hinic_get_rss_type()
778 &ctx_tbl, sizeof(ctx_tbl), in hinic_get_rss_type()
779 &ctx_tbl, &out_size); in hinic_get_rss_type()
780 if (err || !out_size || ctx_tbl.status) { in hinic_get_rss_type()
782 err, ctx_tbl.status, out_size); in hinic_get_rss_type()
786 rss_type->ipv4 = HINIC_RSS_TYPE_GET(ctx_tbl.context, IPV4); in hinic_get_rss_type()
787 rss_type->ipv6 = HINIC_RSS_TYPE_GET(ctx_tbl.context, IPV6); in hinic_get_rss_type()
788 rss_type->ipv6_ext = HINIC_RSS_TYPE_GET(ctx_tbl.context, IPV6_EXT); in hinic_get_rss_type()
789 rss_type->tcp_ipv4 = HINIC_RSS_TYPE_GET(ctx_tbl.context, TCP_IPV4); in hinic_get_rss_type()
790 rss_type->tcp_ipv6 = HINIC_RSS_TYPE_GET(ctx_tbl.context, TCP_IPV6); in hinic_get_rss_type()
791 rss_type->tcp_ipv6_ext = HINIC_RSS_TYPE_GET(ctx_tbl.context, in hinic_get_rss_type()
793 rss_type->udp_ipv4 = HINIC_RSS_TYPE_GET(ctx_tbl.context, UDP_IPV4); in hinic_get_rss_type()
794 rss_type->udp_ipv6 = HINIC_RSS_TYPE_GET(ctx_tbl.context, UDP_IPV6); in hinic_get_rss_type()