Home
last modified time | relevance | path

Searched refs:s_last (Results 1 – 22 of 22) sorted by relevance

/openbmc/u-boot/cmd/
H A Dflash.c189 int *s_first, int *s_last, in flash_fill_sect_ranges() argument
200 s_last [bank] = -1; /* last sector to erase */ in flash_fill_sect_ranges()
232 s_last[bank] = sect; in flash_fill_sect_ranges()
236 if (s_last[bank] < 0) { in flash_fill_sect_ranges()
238 s_last[bank] = s_end; in flash_fill_sect_ranges()
246 if (s_last[bank] < s_first[bank]) { in flash_fill_sect_ranges()
252 sect = s_last[bank]; in flash_fill_sect_ranges()
254 (*s_count) += s_last[bank] - s_first[bank] + 1; in flash_fill_sect_ranges()
259 } else if (s_last[bank] >= 0) { in flash_fill_sect_ranges()
397 int s_first[CONFIG_SYS_MAX_FLASH_BANKS], s_last[CONFIG_SYS_MAX_FLASH_BANKS]; in flash_sect_erase() local
[all …]
/openbmc/u-boot/drivers/mtd/
H A Dcfi_mtd.c29 int s_last = -1; in cfi_mtd_erase() local
38 s_last = sect; in cfi_mtd_erase()
42 s_last = sect; in cfi_mtd_erase()
47 if (s_first >= 0 && s_first <= s_last) { in cfi_mtd_erase()
51 error = flash_erase(fi, s_first, s_last); in cfi_mtd_erase()
H A Dpic32_flash.c105 int flash_erase(flash_info_t *info, int s_first, int s_last) in flash_erase() argument
117 if ((s_first < 0) || (s_first > s_last)) { in flash_erase()
123 for (sect = s_first; sect <= s_last; ++sect) { in flash_erase()
135 for (sect = s_first; sect <= s_last; sect++) { in flash_erase()
H A Dst_smi.c531 int flash_erase(flash_info_t *info, int s_first, int s_last) in flash_erase() argument
537 if ((s_first < 0) || (s_first > s_last)) { in flash_erase()
542 for (sect = s_first; sect <= s_last; ++sect) { in flash_erase()
553 for (sect = s_first; sect <= s_last; sect++) { in flash_erase()
H A Daltera_qspi.c83 int flash_erase(flash_info_t *info, int s_first, int s_last) in flash_erase() argument
92 instr.len = mtd->erasesize * (s_last + 1 - s_first); in flash_erase()
H A Dcfi_flash.c1055 int flash_erase(flash_info_t *info, int s_first, int s_last) in flash_erase() argument
1066 if (s_first < 0 || s_first > s_last) { in flash_erase()
1072 for (sect = s_first; sect <= s_last; ++sect) in flash_erase()
1082 for (sect = s_first; sect <= s_last; sect++) { in flash_erase()
/openbmc/u-boot/board/freescale/m5253demo/
H A Dflash.c177 int flash_erase(flash_info_t * info, int s_first, int s_last) in flash_erase() argument
184 if ((s_first < 0) || (s_first > s_last)) { in flash_erase()
206 for (sect = s_first; sect <= s_last; ++sect) { in flash_erase()
222 if ((s_last - s_first) == (CONFIG_SYS_SST_SECT - 1)) { in flash_erase()
264 for (sect = s_first; sect <= s_last; sect++) { in flash_erase()
/openbmc/u-boot/board/cobra5272/
H A Dflash.c128 int flash_erase (flash_info_t * info, int s_first, int s_last) in flash_erase() argument
141 if ((s_first < 0) || (s_first > s_last)) { in flash_erase()
151 for (sect = s_first; sect <= s_last; ++sect) { in flash_erase()
174 for (sect = s_first; sect <= s_last && !ctrlc (); sect++) { in flash_erase()
/openbmc/linux/drivers/infiniband/sw/rdmavt/
H A Dqp.c590 while (qp->s_last != qp->s_head) { in rvt_clear_mr_refs()
591 struct rvt_swqe *wqe = rvt_get_swqe_ptr(qp, qp->s_last); in rvt_clear_mr_refs()
594 if (++qp->s_last >= qp->s_size) in rvt_clear_mr_refs()
595 qp->s_last = 0; in rvt_clear_mr_refs()
641 u32 s_last = qp->s_last; in rvt_qp_sends_has_lkey() local
643 while (s_last != qp->s_head) { in rvt_qp_sends_has_lkey()
644 struct rvt_swqe *wqe = rvt_get_swqe_ptr(qp, s_last); in rvt_qp_sends_has_lkey()
649 if (++s_last >= qp->s_size) in rvt_qp_sends_has_lkey()
650 s_last = 0; in rvt_qp_sends_has_lkey()
855 qp->s_last = 0; in rvt_init_qp()
[all …]
H A Dtrace_tx.h84 __entry->last = qp->s_last;
/openbmc/u-boot/arch/arm/mach-at91/arm926ejs/
H A Deflash.c205 int flash_erase (flash_info_t *info, int s_first, int s_last) in flash_erase() argument
207 debug("erase first=%d last=%d\n", s_first, s_last); in flash_erase()
/openbmc/linux/drivers/infiniband/hw/hfi1/
H A Duc.c41 if (qp->s_last == READ_ONCE(qp->s_head)) in hfi1_make_uc_req()
49 wqe = rvt_get_swqe_ptr(qp, qp->s_last); in hfi1_make_uc_req()
93 if (qp->s_last != qp->s_cur) in hfi1_make_uc_req()
H A Drc.c441 if (qp->s_last == READ_ONCE(qp->s_head)) in hfi1_make_rc_req()
449 wqe = rvt_get_swqe_ptr(qp, qp->s_last); in hfi1_make_rc_req()
450 hfi1_trdma_send_complete(qp, wqe, qp->s_last != qp->s_acked ? in hfi1_make_rc_req()
511 if (qp->s_last != qp->s_cur) in hfi1_make_rc_req()
1577 } else if (qp->s_last == qp->s_acked) { in hfi1_restart_rc()
1638 u32 n = qp->s_last; in reset_sending_psn()
1788 while (qp->s_last != qp->s_acked) { in hfi1_rc_send_complete()
1789 wqe = rvt_get_swqe_ptr(qp, qp->s_last); in hfi1_rc_send_complete()
1794 trace_hfi1_qp_send_completion(qp, wqe, qp->s_last); in hfi1_rc_send_complete()
1840 trace_hfi1_qp_send_completion(qp, wqe, qp->s_last); in do_rc_completion()
[all …]
H A Dqp.c587 qp->s_last == qp->s_acked && in qp_idle()
610 wqe = rvt_get_swqe_ptr(qp, qp->s_last); in qp_iter_print()
634 qp->s_last, qp->s_acked, qp->s_cur, in qp_iter_print()
H A Dtrace_tid.h878 __field(u32, s_last)
896 __entry->s_last = qp->s_last;
916 __entry->s_last,
H A Dud.c453 if (qp->s_last == READ_ONCE(qp->s_head)) in hfi1_make_ud_req()
460 wqe = rvt_get_swqe_ptr(qp, qp->s_last); in hfi1_make_ud_req()
H A Dtid_rdma.c2571 if (qp->s_last == qp->s_acked) in hfi1_rc_rcv_tid_rdma_read_resp()
/openbmc/linux/drivers/infiniband/hw/qib/
H A Dqib_rc.c245 if (qp->s_last == READ_ONCE(qp->s_head)) in qib_make_rc_req()
252 wqe = rvt_get_swqe_ptr(qp, qp->s_last); in qib_make_rc_req()
253 rvt_send_complete(qp, wqe, qp->s_last != qp->s_acked ? in qib_make_rc_req()
830 } else if (qp->s_last == qp->s_acked) { in qib_restart_rc()
860 u32 n = qp->s_last; in reset_sending_psn()
918 while (qp->s_last != qp->s_acked) { in qib_rc_send_complete()
919 wqe = rvt_get_swqe_ptr(qp, qp->s_last); in qib_rc_send_complete()
1195 if (qp->s_last == qp->s_acked) { in do_rc_ack()
1467 if (qp->s_last == qp->s_acked) { in qib_rc_rcv_resp()
H A Dqib_qp.c430 wqe = rvt_get_swqe_ptr(qp, qp->s_last); in qib_qp_iter_print()
448 qp->s_last, qp->s_acked, qp->s_cur, in qib_qp_iter_print()
H A Dqib_uc.c64 if (qp->s_last == READ_ONCE(qp->s_head)) in qib_make_uc_req()
71 wqe = rvt_get_swqe_ptr(qp, qp->s_last); in qib_make_uc_req()
H A Dqib_ud.c251 if (qp->s_last == READ_ONCE(qp->s_head)) in qib_make_ud_req()
258 wqe = rvt_get_swqe_ptr(qp, qp->s_last); in qib_make_ud_req()
/openbmc/linux/include/rdma/
H A Drdmavt_qp.h421 u32 s_last; /* last completed entry */ member
851 last = rvt_qp_swqe_incr(qp, qp->s_last); in rvt_qp_complete_swqe()
853 smp_store_release(&qp->s_last, last); in rvt_qp_complete_swqe()