/drivers/net/usb/ |
D | asix_common.c | 622 int first_word, last_word; in asix_get_eeprom() local 631 last_word = (eeprom->offset + eeprom->len - 1) >> 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() 657 int first_word, last_word; in asix_set_eeprom() local 671 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in asix_set_eeprom() 673 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in asix_set_eeprom() 690 ret = asix_read_cmd(dev, AX_CMD_READ_EEPROM, last_word, 0, 2, in asix_set_eeprom() 691 &eeprom_buff[last_word - first_word], 0); in asix_set_eeprom() 693 netdev_err(net, "Failed to read EEPROM at offset 0x%02x.\n", last_word); in asix_set_eeprom() [all …]
|
D | ax88179_178a.c | 584 int first_word, last_word; in ax88179_get_eeprom() local 593 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ax88179_get_eeprom() 594 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in ax88179_get_eeprom() 600 for (i = first_word; i <= last_word; i++) { in ax88179_get_eeprom() 622 int last_word; in ax88179_set_eeprom() local 636 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ax88179_set_eeprom() 638 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in ax88179_set_eeprom() 655 ret = ax88179_read_cmd(dev, AX_ACCESS_EEPROM, last_word, 1, 2, in ax88179_set_eeprom() 656 &eeprom_buff[last_word - first_word]); in ax88179_set_eeprom() 658 netdev_err(net, "Failed to read EEPROM at offset 0x%02x.\n", last_word); in ax88179_set_eeprom() [all …]
|
/drivers/block/drbd/ |
D | drbd_bitmap.c | 559 int idx, last_word; in bm_count_bits() local 569 last_word = ((b->bm_bits - 1) & BITS_PER_PAGE_MASK) >> LN2_BPL; in bm_count_bits() 571 bits += bitmap_weight(p_addr, last_word * BITS_PER_LONG); in bm_count_bits() 572 p_addr[last_word] &= cpu_to_lel(mask); in bm_count_bits() 573 bits += hweight_long(p_addr[last_word]); in bm_count_bits() 575 if (BITS_PER_LONG == 32 && (last_word & 1) == 0) in bm_count_bits() 576 p_addr[last_word+1] = 0; in bm_count_bits() 1435 int page_nr, int first_word, int last_word) in bm_set_full_words_within_one_page() argument 1444 for (i = first_word; i < last_word; i++) { in bm_set_full_words_within_one_page() 1481 int last_word; in _drbd_bm_set_bits() local [all …]
|
/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_ethtool.c | 355 int i, max_len, first_word, last_word; in ixgb_get_eeprom() local 376 last_word = (eeprom->offset + eeprom->len - 1) >> 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() 403 int max_len, first_word, last_word; in ixgb_set_eeprom() local 421 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ixgb_set_eeprom() 437 eeprom_buff[last_word - first_word] in ixgb_set_eeprom() 438 = ixgb_read_eeprom(hw, last_word); in ixgb_set_eeprom() 442 for (i = 0; i <= (last_word - first_word); i++) in ixgb_set_eeprom()
|
/drivers/net/ethernet/intel/e1000/ |
D | e1000_ethtool.c | 426 int first_word, last_word; in e1000_get_eeprom() local 436 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in e1000_get_eeprom() 438 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), 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() 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 486 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in e1000_set_eeprom() 505 ret_val = e1000_read_eeprom(hw, last_word, 1, in e1000_set_eeprom() 506 &eeprom_buff[last_word - first_word]); in e1000_set_eeprom() [all …]
|
/drivers/net/ethernet/intel/e1000e/ |
D | ethtool.c | 507 int last_word; in e1000_get_eeprom() local 517 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in e1000_get_eeprom() 519 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in e1000_get_eeprom() 528 last_word - first_word + 1, in e1000_get_eeprom() 531 for (i = 0; i < last_word - first_word + 1; i++) { in e1000_get_eeprom() 544 (last_word - first_word + 1)); in e1000_get_eeprom() 547 for (i = 0; i < last_word - first_word + 1; i++) in e1000_get_eeprom() 566 int last_word; in e1000_set_eeprom() local 583 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in e1000_set_eeprom() 601 ret_val = e1000_read_nvm(hw, last_word, 1, in e1000_set_eeprom() [all …]
|
/drivers/net/ethernet/intel/igc/ |
D | igc_ethtool.c | 442 int first_word, last_word; in igc_ethtool_get_eeprom() local 453 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in igc_ethtool_get_eeprom() 455 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in igc_ethtool_get_eeprom() 462 last_word - first_word + 1, in igc_ethtool_get_eeprom() 465 for (i = 0; i < last_word - first_word + 1; i++) { in igc_ethtool_get_eeprom() 474 for (i = 0; i < last_word - first_word + 1; i++) in igc_ethtool_get_eeprom() 489 int max_len, first_word, last_word, ret_val = 0; in igc_ethtool_set_eeprom() local 508 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in igc_ethtool_set_eeprom() 527 ret_val = hw->nvm.ops.read(hw, last_word, 1, in igc_ethtool_set_eeprom() 528 &eeprom_buff[last_word - first_word]); in igc_ethtool_set_eeprom() [all …]
|
/drivers/net/wireless/intersil/p54/ |
D | p54spi.c | 92 __le16 last_word; in p54spi_spi_write() local 93 last_word = cpu_to_le16(((u8 *)buf)[len - 1]); in p54spi_spi_write() 95 t[2].tx_buf = &last_word; in p54spi_spi_write() 96 t[2].len = sizeof(last_word); in p54spi_spi_write()
|
/drivers/net/ethernet/intel/igb/ |
D | igb_ethtool.c | 739 int first_word, last_word; in igb_get_eeprom() local 749 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in igb_get_eeprom() 751 eeprom_buff = kmalloc_array(last_word - first_word + 1, sizeof(u16), in igb_get_eeprom() 758 last_word - first_word + 1, in igb_get_eeprom() 761 for (i = 0; i < last_word - first_word + 1; i++) { in igb_get_eeprom() 770 for (i = 0; i < last_word - first_word + 1; i++) in igb_get_eeprom() 787 int max_len, first_word, last_word, ret_val = 0; in igb_set_eeprom() local 804 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in igb_set_eeprom() 823 ret_val = hw->nvm.ops.read(hw, last_word, 1, in igb_set_eeprom() 824 &eeprom_buff[last_word - first_word]); in igb_set_eeprom() [all …]
|
/drivers/net/wireless/ath/ath6kl/ |
D | bmi.c | 496 u32 last_word = 0; in ath6kl_bmi_fast_download() local 506 memcpy(&last_word, &buf[last_word_offset], unaligned_bytes); in ath6kl_bmi_fast_download() 514 ret = ath6kl_bmi_lz_data(ar, (u8 *)&last_word, 4); in ath6kl_bmi_fast_download()
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ethtool.c | 1005 int first_word, last_word, eeprom_len; in ixgbe_get_eeprom() local 1015 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ixgbe_get_eeprom() 1016 eeprom_len = last_word - first_word + 1; in ixgbe_get_eeprom() 1042 int max_len, first_word, last_word, ret_val = 0; in ixgbe_set_eeprom() local 1054 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ixgbe_set_eeprom() 1077 ret_val = hw->eeprom.ops.read(hw, last_word, in ixgbe_set_eeprom() 1078 &eeprom_buff[last_word - first_word]); in ixgbe_set_eeprom() 1084 for (i = 0; i < last_word - first_word + 1; i++) in ixgbe_set_eeprom() 1089 for (i = 0; i < last_word - first_word + 1; i++) in ixgbe_set_eeprom() 1093 last_word - first_word + 1, in ixgbe_set_eeprom()
|