Lines Matching refs:le16_to_cpu
383 return le16_to_cpu(rt->used) * le16_to_cpu(rt->size) + in bytes_per_rt()
390 u16 t16 = le16_to_cpu(lr->lcns_follow); in lrh_length()
416 const struct CLIENT_REC *cr = ca + le16_to_cpu(next_client); in oldest_client_lsn()
445 if (le16_to_cpu(rhdr->major_ver) <= 1 && !rhdr->minor_ver) in is_rst_page_hdr_valid()
448 if (le16_to_cpu(rhdr->major_ver) > 2) in is_rst_page_hdr_valid()
451 ro = le16_to_cpu(rhdr->ra_off); in is_rst_page_hdr_valid()
456 end_usa += le16_to_cpu(rhdr->rhdr.fix_off); in is_rst_page_hdr_valid()
469 u16 ro = le16_to_cpu(rhdr->ra_off); in is_rst_area_valid()
477 cl = le16_to_cpu(ra->log_clients); in is_rst_area_valid()
482 off = le16_to_cpu(ra->client_off); in is_rst_area_valid()
496 if (le16_to_cpu(rhdr->ra_off) + le16_to_cpu(ra->ra_len) > sys_page || in is_rst_area_valid()
497 off > le16_to_cpu(ra->ra_len)) { in is_rst_area_valid()
505 fl = le16_to_cpu(ra->client_idx[0]); in is_rst_area_valid()
506 ul = le16_to_cpu(ra->client_idx[1]); in is_rst_area_valid()
522 if (!IS_ALIGNED(le16_to_cpu(ra->data_off), 8) || in is_rst_area_valid()
523 !IS_ALIGNED(le16_to_cpu(ra->rec_hdr_len), 8)) in is_rst_area_valid()
532 u16 ro = le16_to_cpu(rhdr->ra_off); in is_client_area_valid()
534 u16 ra_len = le16_to_cpu(ra->ra_len); in is_client_area_valid()
542 ca = Add2Ptr(ra, le16_to_cpu(ra->client_off)); in is_client_area_valid()
550 u16 client_idx = le16_to_cpu(ra->client_idx[i]); in is_client_area_valid()
552 u16 clients = le16_to_cpu(ra->log_clients); in is_client_area_valid()
558 client_idx >= le16_to_cpu(ra->log_clients)) in is_client_area_valid()
564 client_idx = le16_to_cpu(cr->next_client); in is_client_area_valid()
588 ca[le16_to_cpu(cr->prev_client)].next_client = cr->next_client; in remove_client()
591 ca[le16_to_cpu(cr->next_client)].prev_client = cr->prev_client; in remove_client()
605 ca[le16_to_cpu(*head)].prev_client = cpu_to_le16(index); in add_client()
614 u16 rsize = t ? le16_to_cpu(t->size) : 0; in enum_rstbl()
682 if (le16_to_cpu(lr->redo_off) & 7) in check_log_rec()
685 if (le16_to_cpu(lr->undo_off) & 7) in check_log_rec()
691 if (is_target_required(le16_to_cpu(lr->redo_op))) in check_log_rec()
694 if (is_target_required(le16_to_cpu(lr->undo_op))) in check_log_rec()
701 t16 = le16_to_cpu(lr->target_attr); in check_log_rec()
716 u16 rsize = le16_to_cpu(rt->size); in check_rstbl()
717 u16 ne = le16_to_cpu(rt->used); in check_rstbl()
725 le16_to_cpu(rt->total) > ne || ff > ts || lf > ts || in check_rstbl()
819 u16 esize = le16_to_cpu(tbl->size); in extend_rsttbl()
821 u32 used = le16_to_cpu(tbl->used); in extend_rsttbl()
872 memset(e, 0, le16_to_cpu(t->size)); in alloc_rsttbl_idx()
896 u16 esize = le16_to_cpu(rt->size); in alloc_rsttbl_from_idx()
1093 ? le16_to_cpu(hdr->record_hdr.next_record_off) in base_lsn()
1241 ra = Add2Ptr(r_page, le16_to_cpu(r_page->ra_off)); in log_read_rst()
1276 ra = Add2Ptr(r_page, le16_to_cpu(r_page->ra_off)); in log_read_rst()
1723 best_page_pos = le16_to_cpu(best_page->page_pos); in last_log_lsn()
1733 page_cnt = le16_to_cpu(best_page->page_count); in last_log_lsn()
1745 u16 bppc = le16_to_cpu(best_page->page_count); in last_log_lsn()
1835 le16_to_cpu(page->page_pos) == 1) || in last_log_lsn()
1837 le16_to_cpu(page->page_pos) == page_pos + 1 && in last_log_lsn()
1838 le16_to_cpu(page->page_count) == page_cnt))) { in last_log_lsn()
1872 le16_to_cpu(cur_page->record_hdr.next_record_off)) { in last_log_lsn()
1970 } else if (le16_to_cpu(page->page_count) != page_cnt || in last_log_lsn()
1971 le16_to_cpu(page->page_pos) != page_pos + 1) { in last_log_lsn()
2010 le16_to_cpu(page->record_hdr.next_record_off)) { in last_log_lsn()
2027 page_cnt = le16_to_cpu(page->page_count); in last_log_lsn()
2028 page_pos = le16_to_cpu(page->page_pos); in last_log_lsn()
2052 le16_to_cpu( in last_log_lsn()
2121 if (le16_to_cpu(tst_page->page_pos) == cur_pos && in last_log_lsn()
2123 page_cnt = le16_to_cpu(tst_page->page_count) + 1; in last_log_lsn()
2124 page_pos = le16_to_cpu(tst_page->page_pos); in last_log_lsn()
2329 Add2Ptr(log->ra, le16_to_cpu(log->ra->client_off)); in read_rst_area()
2473 cr = Add2Ptr(log->ra, le16_to_cpu(log->ra->client_off)); in read_log_rec_lcb()
2563 log, Add2Ptr(log->ra, le16_to_cpu(log->ra->client_off)), in find_client_next_lsn()
2627 u16 esize = le16_to_cpu(e->size); in check_index_header()
2654 if (le16_to_cpu(r->fix_off) > fo) in check_index_buffer()
2657 if ((le16_to_cpu(r->fix_num) - 1) * SECTOR_SIZE != bytes) in check_index_buffer()
2705 le16_to_cpu(attr->name_off) + attr->name_len * sizeof(short) > in check_attr()
2715 le16_to_cpu(attr->res.data_off) + rsize > asize) { in check_attr()
2724 run_off = le16_to_cpu(attr->nres.run_off); in check_attr()
2746 attr, le16_to_cpu(attr->res.data_off))) > asize) { in check_attr()
2788 u16 fo = le16_to_cpu(rec->rhdr.fix_off); in check_file_record()
2789 u16 fn = le16_to_cpu(rec->rhdr.fix_num); in check_file_record()
2790 u16 ao = le16_to_cpu(rec->attr_off); in check_file_record()
2835 u16 ro = le16_to_cpu(lrh->record_off); in check_if_attr()
2836 u16 o = le16_to_cpu(rec->attr_off); in check_if_attr()
2859 u16 ro = le16_to_cpu(lrh->record_off); in check_if_index_root()
2860 u16 o = le16_to_cpu(rec->attr_off); in check_if_index_root()
2884 u16 ao = le16_to_cpu(lrh->attr_off); in check_if_root_index()
2896 esize = le16_to_cpu(e->size); in check_if_root_index()
2921 esize = le16_to_cpu(e->size); in check_if_alloc_index()
3057 u16 roff = le16_to_cpu(lrh->record_off); in do_action()
3058 u16 aoff = le16_to_cpu(lrh->attr_off); in do_action()
3060 u64 cbo = (u64)le16_to_cpu(lrh->cluster_off) << SECTOR_SHIFT; in do_action()
3173 lco = (u64)le16_to_cpu(lrh->lcns_follow) << sbi->cluster_bits; in do_action()
3248 id = le16_to_cpu(rec->next_attr_id); in do_action()
3249 id2 = le16_to_cpu(attr2->id); in do_action()
3304 data_off = le16_to_cpu(attr->res.data_off); in do_action()
3312 used - le16_to_cpu(lrh->record_off) - asize); in do_action()
3343 aoff < le16_to_cpu(attr->nres.run_off) || aoff > asize || in do_action()
3351 used - le16_to_cpu(lrh->record_off) - asize); in do_action()
3395 esize = le16_to_cpu(e->size); in do_action()
3407 e1 = Add2Ptr(attr, le16_to_cpu(lrh->attr_off)); in do_action()
3432 e1 = Add2Ptr(attr, le16_to_cpu(lrh->attr_off)); in do_action()
3433 esize = le16_to_cpu(e1->size); in do_action()
3456 e = Add2Ptr(attr, le16_to_cpu(lrh->attr_off)); in do_action()
3471 e = Add2Ptr(attr, le16_to_cpu(lrh->attr_off)); in do_action()
3486 e = Add2Ptr(attr, le16_to_cpu(lrh->attr_off)); in do_action()
3488 memmove(Add2Ptr(e, le16_to_cpu(e->view.data_off)), data, dlen); in do_action()
3516 esize = le16_to_cpu(e->size); in do_action()
3548 esize = le16_to_cpu(e->size); in do_action()
3682 memmove(Add2Ptr(e, le16_to_cpu(e->view.data_off)), data, dlen); in do_action()
3883 le16_to_cpu(rst_info.r_page->ra_off)) in log_replay()
3955 le16_to_cpu(rst_info.r_page->major_ver), in log_replay()
3956 le16_to_cpu(rst_info.r_page->minor_ver)); in log_replay()
3964 log->ra_off = le16_to_cpu(rst_info.r_page->ra_off); in log_replay()
3966 log->record_header_len = le16_to_cpu(ra2->rec_hdr_len); in log_replay()
3967 log->ra_size = le16_to_cpu(ra2->ra_len); in log_replay()
3968 log->data_off = le16_to_cpu(ra2->data_off); in log_replay()
4012 oldest_client_lsn(Add2Ptr(ra2, le16_to_cpu(ra2->client_off)), in log_replay()
4037 t16 = le16_to_cpu(ra2->client_off); in log_replay()
4043 le16_to_cpu(ra2->ra_len) - t16); in log_replay()
4082 ca = Add2Ptr(ra, le16_to_cpu(ra->client_off)); in log_replay()
4091 t16 = le16_to_cpu(client); in log_replay()
4108 cr = ca + le16_to_cpu(client); in log_replay()
4154 t16 = le16_to_cpu(lrh->redo_off); in log_replay()
4194 t16 = le16_to_cpu(lrh->redo_off); in log_replay()
4300 t16 = le16_to_cpu(lrh->redo_off); in log_replay()
4351 oe = Add2Ptr(oatbl, le16_to_cpu(ane->off)); in log_replay()
4352 t16 = le16_to_cpu(ane->name_bytes); in log_replay()
4452 switch (le16_to_cpu(lrh->redo_op)) { in log_replay()
4476 t16 = le16_to_cpu(lrh->target_attr); in log_replay()
4488 t32 = (le16_to_cpu(dptbl->size) - in log_replay()
4519 t16 = le16_to_cpu(lrh->lcns_follow); in log_replay()
4530 le16_to_cpu(lrh->redo_len) / sizeof(struct LCN_RANGE); in log_replay()
4532 Add2Ptr(lrh, le16_to_cpu(lrh->redo_off)); in log_replay()
4556 t16 = le16_to_cpu(lrh->target_attr); in log_replay()
4562 u32 new_e = t16 / le16_to_cpu(oatbl->size); in log_replay()
4564 new_e += 10 - le16_to_cpu(oatbl->used); in log_replay()
4583 t16 = le16_to_cpu(lrh->redo_off); in log_replay()
4598 t16 = le16_to_cpu(lrh->undo_len); in log_replay()
4607 Add2Ptr(lrh, le16_to_cpu(lrh->undo_off)), t16); in log_replay()
4617 t16 = le16_to_cpu(lrh->target_attr); in log_replay()
4767 u16 roff = le16_to_cpu(attr->nres.run_off); in log_replay()
4890 t16 = le16_to_cpu(lrh->target_attr); in log_replay()
4900 t16 = le16_to_cpu(lrh->target_attr); in log_replay()
4929 data = Add2Ptr(lrh, le16_to_cpu(lrh->redo_off)); in log_replay()
4930 dlen = le16_to_cpu(lrh->redo_len); in log_replay()
4935 for (i = le16_to_cpu(lrh->lcns_follow); i; i--) { in log_replay()
4939 voff = le16_to_cpu(lrh->record_off) + in log_replay()
4940 le16_to_cpu(lrh->attr_off); in log_replay()
4941 voff += le16_to_cpu(lrh->cluster_off) << SECTOR_SHIFT; in log_replay()
4974 t16 = le16_to_cpu(lrh->redo_op); in log_replay()
5039 oe = Add2Ptr(oatbl, le16_to_cpu(lrh->target_attr)); in log_replay()
5042 t16 = le16_to_cpu(lrh->lcns_follow); in log_replay()
5076 t16 = le16_to_cpu(lrh->undo_op); in log_replay()
5081 data = Add2Ptr(lrh, le16_to_cpu(lrh->undo_off)); in log_replay()
5082 dlen = le16_to_cpu(lrh->undo_len); in log_replay()