Home
last modified time | relevance | path

Searched refs:first_word (Results 1 – 9 of 9) sorted by relevance

/drivers/net/usb/
Dasix_common.c441 int first_word, last_word; in asix_get_eeprom() local
449 first_word = eeprom->offset >> 1; in asix_get_eeprom()
452 eeprom_buff = kmalloc(sizeof(u16) * (last_word - first_word + 1), in asix_get_eeprom()
458 for (i = first_word; i <= last_word; i++) { in asix_get_eeprom()
460 &(eeprom_buff[i - first_word])) < 0) { in asix_get_eeprom()
476 int first_word, last_word; in asix_set_eeprom() local
489 first_word = eeprom->offset >> 1; in asix_set_eeprom()
492 eeprom_buff = kmalloc(sizeof(u16) * (last_word - first_word + 1), in asix_set_eeprom()
500 ret = asix_read_cmd(dev, AX_CMD_READ_EEPROM, first_word, 0, 2, in asix_set_eeprom()
503 netdev_err(net, "Failed to read EEPROM at offset 0x%02x.\n", first_word); in asix_set_eeprom()
[all …]
Dax88179_178a.c534 int first_word, last_word; in ax88179_get_eeprom() local
542 first_word = eeprom->offset >> 1; in ax88179_get_eeprom()
544 eeprom_buff = kmalloc(sizeof(u16) * (last_word - first_word + 1), in ax88179_get_eeprom()
550 for (i = first_word; i <= last_word; i++) { in ax88179_get_eeprom()
552 &eeprom_buff[i - first_word], in ax88179_get_eeprom()
/drivers/net/ethernet/intel/ixgb/
Dixgb_ethtool.c373 int i, max_len, first_word, last_word; in ixgb_get_eeprom() local
393 first_word = eeprom->offset >> 1; in ixgb_get_eeprom()
397 (last_word - first_word + 1), GFP_KERNEL); in ixgb_get_eeprom()
402 for (i = 0; i <= (last_word - first_word); i++) in ixgb_get_eeprom()
403 eeprom_buff[i] = ixgb_get_eeprom_word(hw, (first_word + i)); in ixgb_get_eeprom()
420 int max_len, first_word, last_word; in ixgb_set_eeprom() local
437 first_word = eeprom->offset >> 1; in ixgb_set_eeprom()
448 eeprom_buff[0] = ixgb_read_eeprom(hw, first_word); in ixgb_set_eeprom()
454 eeprom_buff[last_word - first_word] in ixgb_set_eeprom()
459 for (i = 0; i <= (last_word - first_word); i++) in ixgb_set_eeprom()
[all …]
/drivers/misc/altera-stapl/
Daltera.c229 u32 first_word = 0L; in altera_execute() local
281 first_word = get_unaligned_be32(&p[0]); in altera_execute()
282 version = (first_word & 1L); in altera_execute()
298 if ((first_word != 0x4A414D00L) && (first_word != 0x4A414D01L)) { in altera_execute()
2145 u32 first_word = 0L; in altera_get_note() local
2154 first_word = get_unaligned_be32(&p[0]); in altera_get_note()
2155 version = (first_word & 1L); in altera_get_note()
2163 if ((first_word != 0x4A414D00L) && (first_word != 0x4A414D01L)) in altera_get_note()
2232 u32 first_word = 0L; in altera_check_crc() local
2237 first_word = get_unaligned_be32(&p[0]); in altera_check_crc()
[all …]
/drivers/net/ethernet/intel/e1000/
De1000_ethtool.c449 int first_word, last_word; in e1000_get_eeprom() local
458 first_word = eeprom->offset >> 1; in e1000_get_eeprom()
462 (last_word - first_word + 1), GFP_KERNEL); in e1000_get_eeprom()
467 ret_val = e1000_read_eeprom(hw, first_word, in e1000_get_eeprom()
468 last_word - first_word + 1, in e1000_get_eeprom()
471 for (i = 0; i < last_word - first_word + 1; i++) { in e1000_get_eeprom()
472 ret_val = e1000_read_eeprom(hw, first_word + i, 1, in e1000_get_eeprom()
480 for (i = 0; i < last_word - first_word + 1; i++) in e1000_get_eeprom()
497 int max_len, first_word, last_word, ret_val = 0; in e1000_set_eeprom() local
508 first_word = eeprom->offset >> 1; in e1000_set_eeprom()
[all …]
/drivers/net/ethernet/intel/e1000e/
Dethtool.c489 int first_word; in e1000_get_eeprom() local
499 first_word = eeprom->offset >> 1; in e1000_get_eeprom()
502 eeprom_buff = kmalloc(sizeof(u16) * (last_word - first_word + 1), in e1000_get_eeprom()
508 ret_val = e1000_read_nvm(hw, first_word, in e1000_get_eeprom()
509 last_word - first_word + 1, in e1000_get_eeprom()
512 for (i = 0; i < last_word - first_word + 1; i++) { in e1000_get_eeprom()
513 ret_val = e1000_read_nvm(hw, first_word + i, 1, in e1000_get_eeprom()
523 (last_word - first_word + 1)); in e1000_get_eeprom()
526 for (i = 0; i < last_word - first_word + 1; i++) in e1000_get_eeprom()
544 int first_word; in e1000_set_eeprom() local
[all …]
/drivers/net/ethernet/intel/igb/
Digb_ethtool.c718 int first_word, last_word; in igb_get_eeprom() local
727 first_word = eeprom->offset >> 1; in igb_get_eeprom()
731 (last_word - first_word + 1), GFP_KERNEL); in igb_get_eeprom()
736 ret_val = hw->nvm.ops.read(hw, first_word, in igb_get_eeprom()
737 last_word - first_word + 1, in igb_get_eeprom()
740 for (i = 0; i < last_word - first_word + 1; i++) { in igb_get_eeprom()
741 ret_val = hw->nvm.ops.read(hw, first_word + i, 1, in igb_get_eeprom()
749 for (i = 0; i < last_word - first_word + 1; i++) in igb_get_eeprom()
766 int max_len, first_word, last_word, ret_val = 0; in igb_set_eeprom() local
780 first_word = eeprom->offset >> 1; in igb_set_eeprom()
[all …]
/drivers/block/drbd/
Ddrbd_bitmap.c1481 int page_nr, int first_word, int last_word) in bm_set_full_words_within_one_page() argument
1487 for (i = first_word; i < last_word; i++) { in bm_set_full_words_within_one_page()
1523 int first_word; in _drbd_bm_set_bits() local
1547 first_word = MLPP(sl >> LN2_BPL); in _drbd_bm_set_bits()
1552 bm_set_full_words_within_one_page(mdev->bitmap, page_nr, first_word, last_word); in _drbd_bm_set_bits()
1555 first_word = 0; in _drbd_bm_set_bits()
1568 bm_set_full_words_within_one_page(mdev->bitmap, last_page, first_word, last_word); in _drbd_bm_set_bits()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c756 int first_word, last_word, eeprom_len; in ixgbe_get_eeprom() local
765 first_word = eeprom->offset >> 1; in ixgbe_get_eeprom()
767 eeprom_len = last_word - first_word + 1; in ixgbe_get_eeprom()
773 ret_val = hw->eeprom.ops.read_buffer(hw, first_word, eeprom_len, in ixgbe_get_eeprom()
793 int max_len, first_word, last_word, ret_val = 0; in ixgbe_set_eeprom() local
804 first_word = eeprom->offset >> 1; in ixgbe_set_eeprom()
817 ret_val = hw->eeprom.ops.read(hw, first_word, &eeprom_buff[0]); in ixgbe_set_eeprom()
829 &eeprom_buff[last_word - first_word]); in ixgbe_set_eeprom()
835 for (i = 0; i < last_word - first_word + 1; i++) in ixgbe_set_eeprom()
840 for (i = 0; i < last_word - first_word + 1; i++) in ixgbe_set_eeprom()
[all …]