Lines Matching defs:sb
13 static u32 nfp_shared_buf_pool_unit(struct nfp_pf *pf, unsigned int sb)
15 __le32 sb_id = cpu_to_le32(sb);
26 int nfp_shared_buf_pool_get(struct nfp_pf *pf, unsigned int sb, u16 pool_index,
31 .shared_buf = cpu_to_le32(sb),
37 unit_size = nfp_shared_buf_pool_unit(pf, sb);
56 int nfp_shared_buf_pool_set(struct nfp_pf *pf, unsigned int sb,
62 .shared_buf = cpu_to_le32(sb),
69 unit_size = nfp_shared_buf_pool_unit(pf, sb);
110 struct nfp_shared_buf *sb = &pf->shared_bufs[i];
113 memcpy_fromio(sb, sb_desc + i * entry_sz, sizeof(*sb));
116 le32_to_cpu(sb->id),
117 le32_to_cpu(sb->size),
118 le16_to_cpu(sb->ingress_pools_count),
119 le16_to_cpu(sb->egress_pools_count),
120 le16_to_cpu(sb->ingress_tc_count),
121 le16_to_cpu(sb->egress_tc_count));