Lines Matching refs:gid
216 struct bnxt_qplib_gid *gid) in bnxt_qplib_get_sgid() argument
224 memcpy(gid, &sgid_tbl->tbl[index].gid, sizeof(*gid)); in bnxt_qplib_get_sgid()
229 struct bnxt_qplib_gid *gid, u16 vlan_id, bool update) in bnxt_qplib_del_sgid() argument
243 if (!memcmp(&sgid_tbl->tbl[index].gid, gid, sizeof(*gid)) && in bnxt_qplib_del_sgid()
273 memcpy(&sgid_tbl->tbl[index].gid, &bnxt_qplib_gid_zero, in bnxt_qplib_del_sgid()
288 struct bnxt_qplib_gid *gid, const u8 *smac, in bnxt_qplib_add_sgid() argument
304 if (!memcmp(&sgid_tbl->tbl[i], gid, sizeof(*gid)) && in bnxt_qplib_add_sgid()
331 req.gid[0] = cpu_to_be32(((u32 *)gid->data)[3]); in bnxt_qplib_add_sgid()
332 req.gid[1] = cpu_to_be32(((u32 *)gid->data)[2]); in bnxt_qplib_add_sgid()
333 req.gid[2] = cpu_to_be32(((u32 *)gid->data)[1]); in bnxt_qplib_add_sgid()
334 req.gid[3] = cpu_to_be32(((u32 *)gid->data)[0]); in bnxt_qplib_add_sgid()
362 memcpy(&sgid_tbl->tbl[free_idx], gid, sizeof(*gid)); in bnxt_qplib_add_sgid()
378 struct bnxt_qplib_gid *gid, u16 gid_idx, in bnxt_qplib_update_sgid() argument
394 req.gid[0] = cpu_to_be32(((u32 *)gid->data)[3]); in bnxt_qplib_update_sgid()
395 req.gid[1] = cpu_to_be32(((u32 *)gid->data)[2]); in bnxt_qplib_update_sgid()
396 req.gid[2] = cpu_to_be32(((u32 *)gid->data)[1]); in bnxt_qplib_update_sgid()
397 req.gid[3] = cpu_to_be32(((u32 *)gid->data)[0]); in bnxt_qplib_update_sgid()