Home
last modified time | relevance | path

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

/drivers/net/usb/
Dasix_common.c622 int first_word, last_word; in asix_get_eeprom() local
630 first_word = eeprom->offset >> 1; in asix_get_eeprom()
633 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in asix_get_eeprom()
639 for (i = first_word; i <= last_word; i++) { in asix_get_eeprom()
641 &eeprom_buff[i - first_word], 0) < 0) { in asix_get_eeprom()
657 int first_word, last_word; in asix_set_eeprom() local
670 first_word = eeprom->offset >> 1; in asix_set_eeprom()
673 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in asix_set_eeprom()
681 ret = asix_read_cmd(dev, AX_CMD_READ_EEPROM, first_word, 0, 2, in asix_set_eeprom()
684 netdev_err(net, "Failed to read EEPROM at offset 0x%02x.\n", first_word); in asix_set_eeprom()
[all …]
Dax88179_178a.c583 int first_word, last_word; in ax88179_get_eeprom() local
591 first_word = eeprom->offset >> 1; in ax88179_get_eeprom()
593 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in ax88179_get_eeprom()
599 for (i = first_word; i <= last_word; i++) { in ax88179_get_eeprom()
601 &eeprom_buff[i - first_word], in ax88179_get_eeprom()
/drivers/net/ethernet/intel/ixgb/
Dixgb_ethtool.c355 int i, max_len, first_word, last_word; in ixgb_get_eeprom() local
375 first_word = eeprom->offset >> 1; in ixgb_get_eeprom()
378 eeprom_buff = kmalloc_array(last_word - first_word + 1, in ixgb_get_eeprom()
385 for (i = 0; i <= (last_word - first_word); i++) in ixgb_get_eeprom()
386 eeprom_buff[i] = ixgb_get_eeprom_word(hw, (first_word + i)); in ixgb_get_eeprom()
403 int max_len, first_word, last_word; in ixgb_set_eeprom() local
420 first_word = eeprom->offset >> 1; in ixgb_set_eeprom()
431 eeprom_buff[0] = ixgb_read_eeprom(hw, first_word); in ixgb_set_eeprom()
437 eeprom_buff[last_word - first_word] in ixgb_set_eeprom()
442 for (i = 0; i <= (last_word - first_word); i++) in ixgb_set_eeprom()
[all …]
/drivers/misc/altera-stapl/
Daltera.c215 u32 first_word = 0L; in altera_execute() local
267 first_word = get_unaligned_be32(&p[0]); in altera_execute()
268 version = (first_word & 1L); in altera_execute()
284 if ((first_word != 0x4A414D00L) && (first_word != 0x4A414D01L)) { in altera_execute()
2131 u32 first_word = 0L; in altera_get_note() local
2140 first_word = get_unaligned_be32(&p[0]); in altera_get_note()
2141 version = (first_word & 1L); in altera_get_note()
2149 if ((first_word != 0x4A414D00L) && (first_word != 0x4A414D01L)) in altera_get_note()
2217 u32 first_word = 0L; in altera_check_crc() local
2222 first_word = get_unaligned_be32(&p[0]); in altera_check_crc()
[all …]
/drivers/net/ethernet/intel/e1000/
De1000_ethtool.c426 int first_word, last_word; in e1000_get_eeprom() local
435 first_word = eeprom->offset >> 1; in e1000_get_eeprom()
438 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in e1000_get_eeprom()
444 ret_val = e1000_read_eeprom(hw, first_word, in e1000_get_eeprom()
445 last_word - first_word + 1, in e1000_get_eeprom()
448 for (i = 0; i < last_word - first_word + 1; i++) { in e1000_get_eeprom()
449 ret_val = e1000_read_eeprom(hw, first_word + i, 1, in e1000_get_eeprom()
457 for (i = 0; i < last_word - first_word + 1; i++) in e1000_get_eeprom()
474 int max_len, first_word, last_word, ret_val = 0; in e1000_set_eeprom() local
485 first_word = eeprom->offset >> 1; in e1000_set_eeprom()
[all …]
/drivers/net/ethernet/intel/igc/
Digc_ethtool.c363 int first_word, last_word; in igc_get_eeprom() local
373 first_word = eeprom->offset >> 1; in igc_get_eeprom()
376 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in igc_get_eeprom()
382 ret_val = hw->nvm.ops.read(hw, first_word, in igc_get_eeprom()
383 last_word - first_word + 1, in igc_get_eeprom()
386 for (i = 0; i < last_word - first_word + 1; i++) { in igc_get_eeprom()
387 ret_val = hw->nvm.ops.read(hw, first_word + i, 1, in igc_get_eeprom()
395 for (i = 0; i < last_word - first_word + 1; i++) in igc_get_eeprom()
410 int max_len, first_word, last_word, ret_val = 0; in igc_set_eeprom() local
428 first_word = eeprom->offset >> 1; in igc_set_eeprom()
[all …]
/drivers/net/ethernet/intel/e1000e/
Dethtool.c499 int first_word; in e1000_get_eeprom() local
509 first_word = eeprom->offset >> 1; in e1000_get_eeprom()
512 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in e1000_get_eeprom()
520 ret_val = e1000_read_nvm(hw, first_word, in e1000_get_eeprom()
521 last_word - first_word + 1, in e1000_get_eeprom()
524 for (i = 0; i < last_word - first_word + 1; i++) { in e1000_get_eeprom()
525 ret_val = e1000_read_nvm(hw, first_word + i, 1, in e1000_get_eeprom()
537 (last_word - first_word + 1)); in e1000_get_eeprom()
540 for (i = 0; i < last_word - first_word + 1; i++) in e1000_get_eeprom()
558 int first_word; in e1000_set_eeprom() local
[all …]
/drivers/net/ethernet/intel/igb/
Digb_ethtool.c730 int first_word, last_word; in igb_get_eeprom() local
739 first_word = eeprom->offset >> 1; in igb_get_eeprom()
742 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in igb_get_eeprom()
748 ret_val = hw->nvm.ops.read(hw, first_word, in igb_get_eeprom()
749 last_word - first_word + 1, in igb_get_eeprom()
752 for (i = 0; i < last_word - first_word + 1; i++) { in igb_get_eeprom()
753 ret_val = hw->nvm.ops.read(hw, first_word + i, 1, in igb_get_eeprom()
761 for (i = 0; i < last_word - first_word + 1; i++) in igb_get_eeprom()
778 int max_len, first_word, last_word, ret_val = 0; in igb_set_eeprom() local
794 first_word = eeprom->offset >> 1; in igb_set_eeprom()
[all …]
/drivers/block/drbd/
Ddrbd_bitmap.c1437 int page_nr, int first_word, int last_word) in bm_set_full_words_within_one_page() argument
1446 for (i = first_word; i < last_word; i++) { in bm_set_full_words_within_one_page()
1482 int first_word; in _drbd_bm_set_bits() local
1506 first_word = MLPP(sl >> LN2_BPL); in _drbd_bm_set_bits()
1511 bm_set_full_words_within_one_page(device->bitmap, page_nr, first_word, last_word); in _drbd_bm_set_bits()
1514 first_word = 0; in _drbd_bm_set_bits()
1527 bm_set_full_words_within_one_page(device->bitmap, last_page, first_word, last_word); in _drbd_bm_set_bits()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c901 int first_word, last_word, eeprom_len; in ixgbe_get_eeprom() local
910 first_word = eeprom->offset >> 1; in ixgbe_get_eeprom()
912 eeprom_len = last_word - first_word + 1; in ixgbe_get_eeprom()
918 ret_val = hw->eeprom.ops.read_buffer(hw, first_word, eeprom_len, in ixgbe_get_eeprom()
938 int max_len, first_word, last_word, ret_val = 0; in ixgbe_set_eeprom() local
949 first_word = eeprom->offset >> 1; in ixgbe_set_eeprom()
962 ret_val = hw->eeprom.ops.read(hw, first_word, &eeprom_buff[0]); in ixgbe_set_eeprom()
974 &eeprom_buff[last_word - first_word]); in ixgbe_set_eeprom()
980 for (i = 0; i < last_word - first_word + 1; i++) in ixgbe_set_eeprom()
985 for (i = 0; i < last_word - first_word + 1; i++) in ixgbe_set_eeprom()
[all …]
/drivers/net/ethernet/intel/ice/
Dice_ethtool.c241 u16 first_word, last_word, nwords; in ice_get_eeprom() local
254 first_word = eeprom->offset >> 1; in ice_get_eeprom()
256 nwords = last_word - first_word + 1; in ice_get_eeprom()
262 status = ice_read_sr_buf(hw, first_word, &nwords, buf); in ice_get_eeprom()