Home
last modified time | relevance | path

Searched refs:last_word (Results 1 – 8 of 8) sorted by relevance

/linux-2.6.39/drivers/net/
Dks8851.c1326 int last_word; in ks8851_get_eeprom() local
1339 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ks8851_get_eeprom()
1342 (last_word - first_word + 1), GFP_KERNEL); in ks8851_get_eeprom()
1346 for (i = 0; i < last_word - first_word + 1; i++) in ks8851_get_eeprom()
1350 for (i = 0; i < last_word - first_word + 1; i++) in ks8851_get_eeprom()
1367 int last_word; in ks8851_set_eeprom() local
1381 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ks8851_set_eeprom()
1382 max_len = (last_word - first_word + 1) * 2; in ks8851_set_eeprom()
1398 eeprom_buff[last_word - first_word] = in ks8851_set_eeprom()
1399 ks8851_eeprom_read(dev, last_word); in ks8851_set_eeprom()
[all …]
/linux-2.6.39/drivers/block/drbd/
Ddrbd_bitmap.c546 int idx, i, last_word; in bm_count_bits() local
557 last_word = ((b->bm_bits - 1) & BITS_PER_PAGE_MASK) >> LN2_BPL; in bm_count_bits()
559 for (i = 0; i < last_word; i++) in bm_count_bits()
561 p_addr[last_word] &= cpu_to_lel(mask); in bm_count_bits()
562 bits += hweight_long(p_addr[last_word]); in bm_count_bits()
564 if (BITS_PER_LONG == 32 && (last_word & 1) == 0) in bm_count_bits()
565 p_addr[last_word+1] = 0; in bm_count_bits()
1342 int page_nr, int first_word, int last_word) in bm_set_full_words_within_one_page() argument
1347 for (i = first_word; i < last_word; i++) { in bm_set_full_words_within_one_page()
1375 int last_word; in _drbd_bm_set_bits() local
[all …]
/linux-2.6.39/drivers/net/ixgb/
Dixgb_ethtool.c423 int i, max_len, first_word, last_word; in ixgb_get_eeprom() local
444 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ixgb_get_eeprom()
447 (last_word - first_word + 1), GFP_KERNEL); in ixgb_get_eeprom()
452 for (i = 0; i <= (last_word - first_word); i++) in ixgb_get_eeprom()
470 int max_len, first_word, last_word; in ixgb_set_eeprom() local
488 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ixgb_set_eeprom()
504 eeprom_buff[last_word - first_word] in ixgb_set_eeprom()
505 = ixgb_read_eeprom(hw, last_word); in ixgb_set_eeprom()
509 for (i = 0; i <= (last_word - first_word); i++) in ixgb_set_eeprom()
/linux-2.6.39/drivers/net/e1000/
De1000_ethtool.c474 int first_word, last_word; in e1000_get_eeprom() local
484 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in e1000_get_eeprom()
487 (last_word - first_word + 1), GFP_KERNEL); in e1000_get_eeprom()
493 last_word - first_word + 1, in e1000_get_eeprom()
496 for (i = 0; i < last_word - first_word + 1; i++) { in e1000_get_eeprom()
505 for (i = 0; i < last_word - first_word + 1; i++) in e1000_get_eeprom()
522 int max_len, first_word, last_word, ret_val = 0; in e1000_set_eeprom() local
534 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in e1000_set_eeprom()
551 ret_val = e1000_read_eeprom(hw, last_word, 1, in e1000_set_eeprom()
552 &eeprom_buff[last_word - first_word]); in e1000_set_eeprom()
[all …]
/linux-2.6.39/drivers/net/e1000e/
Dethtool.c496 int last_word; in e1000_get_eeprom() local
506 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in e1000_get_eeprom()
509 (last_word - first_word + 1), GFP_KERNEL); in e1000_get_eeprom()
515 last_word - first_word + 1, in e1000_get_eeprom()
518 for (i = 0; i < last_word - first_word + 1; i++) { in e1000_get_eeprom()
529 (last_word - first_word + 1)); in e1000_get_eeprom()
532 for (i = 0; i < last_word - first_word + 1; i++) in e1000_get_eeprom()
551 int last_word; in e1000_set_eeprom() local
567 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in e1000_set_eeprom()
583 ret_val = e1000_read_nvm(hw, last_word, 1, in e1000_set_eeprom()
[all …]
/linux-2.6.39/drivers/net/wireless/p54/
Dp54spi.c107 __le16 last_word; in p54spi_spi_write() local
108 last_word = cpu_to_le16(((u8 *)buf)[len - 1]); in p54spi_spi_write()
110 t[2].tx_buf = &last_word; in p54spi_spi_write()
111 t[2].len = sizeof(last_word); in p54spi_spi_write()
/linux-2.6.39/drivers/net/igb/
Digb_ethtool.c628 int first_word, last_word; in igb_get_eeprom() local
638 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in igb_get_eeprom()
641 (last_word - first_word + 1), GFP_KERNEL); in igb_get_eeprom()
647 last_word - first_word + 1, in igb_get_eeprom()
650 for (i = 0; i < last_word - first_word + 1; i++) { in igb_get_eeprom()
659 for (i = 0; i < last_word - first_word + 1; i++) in igb_get_eeprom()
676 int max_len, first_word, last_word, ret_val = 0; in igb_set_eeprom() local
688 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in igb_set_eeprom()
705 ret_val = hw->nvm.ops.read(hw, last_word, 1, in igb_set_eeprom()
706 &eeprom_buff[last_word - first_word]); in igb_set_eeprom()
[all …]
/linux-2.6.39/drivers/net/ixgbe/
Dixgbe_ethtool.c832 int first_word, last_word, eeprom_len; in ixgbe_get_eeprom() local
842 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in ixgbe_get_eeprom()
843 eeprom_len = last_word - first_word + 1; in ixgbe_get_eeprom()