• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/infiniband/hw/qib/

Lines Matching defs:ifp

113 static u8 flash_csum(struct qib_flash *ifp, int adjust)
115 u8 *ip = (u8 *) ifp;
123 len = ifp->if_length;
128 csum -= ifp->if_csum;
131 ifp->if_csum = csum;
146 struct qib_flash *ifp;
200 ifp = (struct qib_flash *)buf;
202 csum = flash_csum(ifp, 0);
203 if (csum != ifp->if_csum) {
205 "0x%x, not 0x%x\n", csum, ifp->if_csum);
208 if (*(__be64 *) ifp->if_guid == cpu_to_be64(0) ||
209 *(__be64 *) ifp->if_guid == ~cpu_to_be64(0)) {
211 *(unsigned long long *) ifp->if_guid);
217 if (*(u64 *) ifp->if_guid == 0x100007511000000ULL)
220 *(unsigned long long *) ifp->if_guid);
222 bguid = ifp->if_guid;
233 guid = *(__be64 *) ifp->if_guid;
235 guid = *(__be64 *) ifp->if_guid;
237 dd->nguid = ifp->if_numguid;
243 if ((ifp->if_fversion > 1) && ifp->if_sprefix[0] &&
244 ((u8 *) ifp->if_sprefix)[0] != 0xFF) {
251 memcpy(snp, ifp->if_sprefix, sizeof ifp->if_sprefix);
252 snp[sizeof ifp->if_sprefix] = '\0';
256 if (len > sizeof ifp->if_serial)
257 len = sizeof ifp->if_serial;
258 memcpy(snp, ifp->if_serial, len);
260 memcpy(dd->serial, ifp->if_serial,
261 sizeof ifp->if_serial);
262 if (!strstr(ifp->if_comment, "Tested successfully"))
264 "test: %s\n", dd->serial, ifp->if_comment);
266 memcpy(&dd->eep_st_errs, &ifp->if_errcntp, QIB_EEP_LOG_CNT);
273 dd->eep_hrs = ifp->if_powerhour[0] | (ifp->if_powerhour[1] << 8);
296 struct qib_flash *ifp;
345 ifp = (struct qib_flash *)buf;
347 csum = flash_csum(ifp, 0);
348 if (csum != ifp->if_csum) {
351 csum, ifp->if_csum);
368 new_val += ifp->if_errcntp[idx];
371 if (ifp->if_errcntp[idx] != new_val) {
372 ifp->if_errcntp[idx] = new_val;
398 if ((new_hrs & 0xFF) != ifp->if_powerhour[0]) {
399 ifp->if_powerhour[0] = new_hrs & 0xFF;
402 if ((new_hrs >> 8) != ifp->if_powerhour[1]) {
403 ifp->if_powerhour[1] = new_hrs >> 8;
415 csum = flash_csum(ifp, 1);