Home
last modified time | relevance | path

Searched refs:attempts (Results 1 – 25 of 36) sorted by relevance

12

/drivers/staging/csr/
Dinit_hw.c49 int attempts = 0; in uf_init_hw() local
60 if (attempts > MAX_INIT_ATTEMPTS) { in uf_init_hw()
63 attempts); in uf_init_hw()
66 attempts++; in uf_init_hw()
68 unifi_info(priv, "Initialising UniFi, attempt %d\n", attempts); in uf_init_hw()
/drivers/i2c/busses/
Di2c-stu300.c660 int attempts = 0; in stu300_xfer_msg() local
685 if (attempts) in stu300_xfer_msg()
692 if (attempts) in stu300_xfer_msg()
712 if (attempts) in stu300_xfer_msg()
718 if (attempts) in stu300_xfer_msg()
723 ret = stu300_send_address(dev, msg, attempts != 0); in stu300_xfer_msg()
726 attempts++; in stu300_xfer_msg()
729 attempts, dev->msg_index, dev->msg_len); in stu300_xfer_msg()
732 } while (ret != 0 && attempts < NUM_ADDR_RESEND_ATTEMPTS); in stu300_xfer_msg()
734 if (attempts < NUM_ADDR_RESEND_ATTEMPTS && attempts > 0) { in stu300_xfer_msg()
[all …]
/drivers/misc/vmw_vmci/
Dvmci_event.c142 int attempts; in vmci_event_subscribe() local
170 for (attempts = 0; attempts < VMCI_EVENT_MAX_ATTEMPTS; attempts++) { in vmci_event_subscribe()
/drivers/mtd/lpddr/
Dqinfo_probe.c82 int attempts = 20; in lpddr_info_query() local
94 while ((attempts--) > 0) { in lpddr_info_query()
/drivers/ssb/
Dpcmcia.c98 int attempts = 0; in ssb_pcmcia_switch_coreidx() local
139 if (attempts++ > SSB_BAR0_MAX_RETRIES) in ssb_pcmcia_switch_coreidx()
170 int attempts = 0; in ssb_pcmcia_switch_segment() local
186 if (unlikely(attempts++ > SSB_BAR0_MAX_RETRIES)) in ssb_pcmcia_switch_segment()
Dpci.c35 int attempts = 0; in ssb_pci_switch_coreidx() local
53 if (attempts++ > SSB_BAR0_MAX_RETRIES) in ssb_pci_switch_coreidx()
/drivers/net/ethernet/chelsio/cxgb3/
Dt3_hw.c56 int polarity, int attempts, int delay, u32 *valp) in t3_wait_op_done_val() argument
66 if (--attempts == 0) in t3_wait_op_done_val()
163 int attempts = 10; in t3_mc7_bd_read() local
169 while ((val & F_BUSY) && attempts--) in t3_mc7_bd_read()
616 int attempts = EEPROM_MAX_POLL; in t3_seeprom_read() local
627 } while (!(val & PCI_VPD_ADDR_F) && --attempts); in t3_seeprom_read()
650 int attempts = EEPROM_MAX_POLL; in t3_seeprom_write() local
663 } while ((val & PCI_VPD_ADDR_F) && --attempts); in t3_seeprom_write()
814 static int flash_wait_op(struct adapter *adapter, int attempts, int delay) in flash_wait_op() argument
825 if (--attempts == 0) in flash_wait_op()
[all …]
Dcommon.h648 int polarity, int attempts, int delay, u32 *valp);
650 int polarity, int attempts, int delay) in t3_wait_op_done() argument
652 return t3_wait_op_done_val(adapter, reg, mask, polarity, attempts, in t3_wait_op_done()
/drivers/net/ethernet/chelsio/cxgb/
Despi.c64 int busy, attempts = TRICN_CMD_ATTEMPTS; in tricn_write() local
76 } while (busy && --attempts); in tricn_write()
Dsubr.c63 int attempts, int delay) in t1_wait_op_done() argument
70 if (--attempts == 0) in t1_wait_op_done()
251 int attempts = 100, busy; in mi1_wait_until_ready() local
260 } while (busy && --attempts); in mi1_wait_until_ready()
/drivers/net/ethernet/intel/e1000e/
Dnvm.c150 u32 attempts = 100000; in e1000e_poll_eerd_eewr_done() local
153 for (i = 0; i < attempts; i++) { in e1000e_poll_eerd_eewr_done()
/drivers/w1/
Dw1.h165 unsigned long attempts; member
Dw1_int.c65 dev->attempts = 0; in w1_alloc_dev()
Dw1_io.c377 dev->attempts++; in w1_search_devices()
Dw1.c331 count = sprintf(buf, "%lu\n", md->attempts); in w1_master_attribute_show_attempts()
517 static W1_MASTER_ATTR_RO(attempts, S_IRUGO);
/drivers/net/ethernet/intel/igb/
De1000_i210.c254 u32 attempts = 100000; in igb_write_nvm_srwr() local
274 for (k = 0; k < attempts; k++) { in igb_write_nvm_srwr()
De1000_nvm.c153 u32 attempts = 100000; in igb_poll_eerd_eewr_done() local
157 for (i = 0; i < attempts; i++) { in igb_poll_eerd_eewr_done()
/drivers/media/firewire/
Dfiredtv-avc.c1365 int attempts = 0; in cmp_establish_pp_connection() local
1413 if (++attempts < 6) /* arbitrary limit */ in cmp_establish_pp_connection()
1425 int attempts = 0; in cmp_break_pp_connection() local
1454 if (++attempts < 6) /* arbitrary limit */ in cmp_break_pp_connection()
/drivers/scsi/csiostor/
Dcsio_hw.c160 int polarity, int attempts, int delay, uint32_t *valp) in csio_hw_wait_op_done_val() argument
172 if (--attempts == 0) in csio_hw_wait_op_done_val()
241 int attempts = EEPROM_MAX_RD_POLL; in csio_hw_seeprom_read() local
252 } while (!(val & PCI_VPD_ADDR_F) && --attempts); in csio_hw_seeprom_read()
479 csio_hw_flash_wait_op(struct csio_hw *hw, int32_t attempts, int32_t delay) in csio_hw_flash_wait_op() argument
495 if (--attempts == 0) in csio_hw_flash_wait_op()
/drivers/net/ethernet/chelsio/cxgb4/
Dt4_hw.c57 int polarity, int attempts, int delay, u32 *valp) in t4_wait_op_done_val() argument
67 if (--attempts == 0) in t4_wait_op_done_val()
75 int polarity, int attempts, int delay) in t4_wait_op_done() argument
77 return t4_wait_op_done_val(adapter, reg, mask, polarity, attempts, in t4_wait_op_done()
749 static int flash_wait_op(struct adapter *adapter, int attempts, int delay) in flash_wait_op() argument
760 if (--attempts == 0) in flash_wait_op()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sriov.c3376 int attempts; in bnx2x_sample_bulletin() local
3387 for (attempts = 0; attempts < BULLETIN_ATTEMPTS; attempts++) { in bnx2x_sample_bulletin()
3396 if (attempts >= BULLETIN_ATTEMPTS) { in bnx2x_sample_bulletin()
3398 attempts); in bnx2x_sample_bulletin()
Dbnx2x_vfpf.c186 int rc = 0, attempts = 0; in bnx2x_vfpf_acquire() local
234 attempts++; in bnx2x_vfpf_acquire()
244 attempts < VF_ACQUIRE_THRESH) { in bnx2x_vfpf_acquire()
/drivers/ide/
Dide-cd.c1123 int stat, attempts = 3, size = ATAPI_CAPABILITIES_PAGE_SIZE; in ide_cdrom_get_capabilities() local
1136 } while (--attempts); in ide_cdrom_get_capabilities()
/drivers/mtd/chips/
DKconfig47 This option defines the way in which the CPU attempts to arrange
/drivers/net/wireless/iwlegacy/
D4965-rs.c421 int attempts, int successes) in il4965_rs_collect_tx_data() argument
444 while (attempts > 0) { in il4965_rs_collect_tx_data()
469 attempts--; in il4965_rs_collect_tx_data()

12