Lines Matching refs:cks
256 u16 cks; in qsfp_cks() local
259 cks = 0; in qsfp_cks()
264 cks += bval; in qsfp_cks()
267 ret = cks & 0xFF; in qsfp_cks()
277 u16 cks; in qib_refresh_qsfp_cache() local
317 cks = cp->id; in qib_refresh_qsfp_cache()
322 cks += cp->pwr; in qib_refresh_qsfp_cache()
327 cks += ret; in qib_refresh_qsfp_cache()
332 cks += cp->len; in qib_refresh_qsfp_cache()
337 cks += cp->tech; in qib_refresh_qsfp_cache()
343 cks += cp->vendor[idx]; in qib_refresh_qsfp_cache()
348 cks += cp->xt_xcv; in qib_refresh_qsfp_cache()
354 cks += cp->oui[idx]; in qib_refresh_qsfp_cache()
360 cks += cp->partnum[idx]; in qib_refresh_qsfp_cache()
366 cks += cp->rev[idx]; in qib_refresh_qsfp_cache()
372 cks += cp->atten[idx]; in qib_refresh_qsfp_cache()
377 cks += ret; in qib_refresh_qsfp_cache()
379 cks &= 0xFF; in qib_refresh_qsfp_cache()
383 if (cks != cp->cks1) in qib_refresh_qsfp_cache()
386 cks); in qib_refresh_qsfp_cache()
392 cks = ret; in qib_refresh_qsfp_cache()
398 cks += cp->serial[idx]; in qib_refresh_qsfp_cache()
404 cks += cp->date[idx]; in qib_refresh_qsfp_cache()
410 cks += cp->lot[idx]; in qib_refresh_qsfp_cache()
415 cks += ret; in qib_refresh_qsfp_cache()
420 cks &= 0xFF; in qib_refresh_qsfp_cache()
421 if (cks != cp->cks2) in qib_refresh_qsfp_cache()
424 cks); in qib_refresh_qsfp_cache()