Lines Matching +full:128 +full:m
348 * Write page n, offset m of QSFP memory as defined by SFF 8636
349 * by writing @addr = ((256 * n) + m)
428 * Access page n, offset m of QSFP memory as defined by SFF 8636
429 * by reading @addr = ((256 * n) + m)
505 * This function caches the QSFP memory range in 128 byte chunks.
506 * As an example, the next byte after address 255 is byte 128 from
508 * Access page n, offset m of QSFP memory as defined by SFF 8636
509 * in the cache by reading byte ((128 * n) + m)
524 memset(cache, 0, (QSFP_MAX_NUM_PAGES * 128)); in refresh_qsfp_cache()
547 ret = qsfp_read(ppd, target, 384, cache + 256, 128); in refresh_qsfp_cache()
548 if (ret <= 0 || ret != 128) { in refresh_qsfp_cache()
552 ret = qsfp_read(ppd, target, 640, cache + 384, 128); in refresh_qsfp_cache()
553 if (ret <= 0 || ret != 128) { in refresh_qsfp_cache()
557 ret = qsfp_read(ppd, target, 896, cache + 512, 128); in refresh_qsfp_cache()
558 if (ret <= 0 || ret != 128) { in refresh_qsfp_cache()
564 ret = qsfp_read(ppd, target, 640, cache + 384, 128); in refresh_qsfp_cache()
565 if (ret <= 0 || ret != 128) { in refresh_qsfp_cache()
569 ret = qsfp_read(ppd, target, 896, cache + 512, 128); in refresh_qsfp_cache()
570 if (ret <= 0 || ret != 128) { in refresh_qsfp_cache()
576 ret = qsfp_read(ppd, target, 384, cache + 256, 128); in refresh_qsfp_cache()
577 if (ret <= 0 || ret != 128) { in refresh_qsfp_cache()
581 ret = qsfp_read(ppd, target, 896, cache + 512, 128); in refresh_qsfp_cache()
582 if (ret <= 0 || ret != 128) { in refresh_qsfp_cache()
588 ret = qsfp_read(ppd, target, 896, cache + 512, 128); in refresh_qsfp_cache()
589 if (ret <= 0 || ret != 128) { in refresh_qsfp_cache()
604 memset(cache, 0, (QSFP_MAX_NUM_PAGES * 128)); in refresh_qsfp_cache()
651 * This function maps QSFP memory addresses in 128 byte chunks in the following
655 * For addr 128-255, upper page 00h
690 if (addr >= (QSFP_MAX_NUM_PAGES * 128)) { in get_cable_info()
695 if ((addr + len) > (QSFP_MAX_NUM_PAGES * 128)) { in get_cable_info()
696 excess_len = (addr + len) - (QSFP_MAX_NUM_PAGES * 128); in get_cable_info()