| /linux/lib/reed_solomon/ |
| H A D | reed_solomon.c | 16 * for the given rs parameters. The control struct is unique per instance. 52 /* This list holds all currently allocated rs codec structures */ 74 struct rs_codec *rs; in codec_init() local 76 rs = kzalloc_obj(*rs, gfp); in codec_init() 77 if (!rs) in codec_init() 80 INIT_LIST_HEAD(&rs->list); in codec_init() 82 rs->mm = symsize; in codec_init() 83 rs->nn = (1 << symsize) - 1; in codec_init() 84 rs in codec_init() 176 free_rs(struct rs_control * rs) free_rs() argument 218 struct rs_control *rs; init_rs_internal() local [all...] |
| H A D | test_rslib.c | 108 static struct wspace *alloc_ws(struct rs_codec *rs) in alloc_ws() argument 110 int nroots = rs->nroots; in alloc_ws() 112 int nn = rs->nn; in alloc_ws() 150 static int get_rcw_we(struct rs_control *rs, struct wspace *ws, 153 int nroots = rs->codec->nroots; in get_rcw_we() 157 int nn = rs->codec->nn; in get_rcw_we() 169 encode_rs16(rs, c, dlen, c + dlen, 0); in get_rcw_we() 231 struct rs_codec *rs = rsc->codec; in compute_syndrome() 232 uint16_t *alpha_to = rs->alpha_to; in compute_syndrome() local 233 uint16_t *index_of = rs in compute_syndrome() 151 get_rcw_we(struct rs_control * rs,struct wspace * ws,int len,int errs,int eras) get_rcw_we() argument 260 test_uc(struct rs_control * rs,int len,int errs,int eras,int trials,struct estat * stat,struct wspace * ws,int method) test_uc() argument 313 ex_rs_helper(struct rs_control * rs,struct wspace * ws,int len,int trials,int method) ex_rs_helper() argument 349 exercise_rs(struct rs_control * rs,struct wspace * ws,int len,int trials) exercise_rs() argument 366 test_bc(struct rs_control * rs,int len,int errs,int eras,int trials,struct bcstat * stat,struct wspace * ws) test_bc() argument 407 exercise_rs_bc(struct rs_control * rs,struct wspace * ws,int len,int trials) exercise_rs_bc() argument [all...] |
| H A D | decode_rs.c | 13 struct rs_codec *rs = rsc->codec; variable 16 int nn = rs->nn; 17 int nroots = rs->nroots; 18 int fcr = rs->fcr; 19 int prim = rs->prim; 20 int iprim = rs->iprim; 21 uint16_t *alpha_to = rs->alpha_to; 22 uint16_t *index_of = rs->index_of; 26 uint16_t msk = (uint16_t) rs->nn; 72 alpha_to[rs_modnn(rs, index_of[syn[i]] + [all …]
|
| H A D | encode_rs.c | 13 struct rs_codec *rs = rsc->codec; variable 15 int nn = rs->nn; 16 int nroots = rs->nroots; 17 uint16_t *alpha_to = rs->alpha_to; 18 uint16_t *index_of = rs->index_of; 19 uint16_t *genpoly = rs->genpoly; 21 uint16_t msk = (uint16_t) rs->nn; 33 par[j] ^= alpha_to[rs_modnn(rs, fb + 40 par[nroots - 1] = alpha_to[rs_modnn(rs,
|
| /linux/fs/jffs2/ |
| H A D | compr_rubin.c | 88 static void init_rubin(struct rubin_state *rs, int div, int *bits) in init_rubin() argument 92 rs->q = 0; in init_rubin() 93 rs->p = (long) (2 * UPPER_BIT_RUBIN); in init_rubin() 94 rs->bit_number = (long) 0; in init_rubin() 95 rs->bit_divider = div; in init_rubin() 98 rs->bits[c] = bits[c]; in init_rubin() 102 static int encode(struct rubin_state *rs, long A, long B, int symbol) in encode() argument 108 while ((rs->q >= UPPER_BIT_RUBIN) || in encode() 109 ((rs->p + rs->q) <= UPPER_BIT_RUBIN)) { in encode() 110 rs->bit_number++; in encode() [all …]
|
| /linux/fs/xfs/scrub/ |
| H A D | reap.c | 169 static inline bool xreap_is_dirty(const struct xreap_state *rs) in xreap_is_dirty() argument 171 return rs->nr_binval > 0 || rs->nr_deferred > 0; in xreap_is_dirty() 178 static inline bool xreap_want_binval_roll(const struct xreap_state *rs) in xreap_want_binval_roll() argument 180 return rs->nr_binval >= rs->max_binval; in xreap_want_binval_roll() 184 static inline void xreap_binval_reset(struct xreap_state *rs) in xreap_binval_reset() argument 186 rs->nr_binval = 0; in xreap_binval_reset() 193 static inline bool xreap_inc_binval(struct xreap_state *rs) in xreap_inc_binval() argument 195 rs in xreap_inc_binval() 206 xreap_want_defer_finish(const struct xreap_state * rs) xreap_want_defer_finish() argument 215 xreap_defer_finish_reset(struct xreap_state * rs) xreap_defer_finish_reset() argument 224 xreap_inc_defer(struct xreap_state * rs) xreap_inc_defer() argument 230 xreap_force_defer_finish(struct xreap_state * rs) xreap_force_defer_finish() argument 285 xreap_agextent_binval(struct xreap_state * rs,xfs_agblock_t agbno,xfs_extlen_t * aglenp) xreap_agextent_binval() argument 349 xreap_agextent_select(struct xreap_state * rs,xfs_agblock_t agbno,xfs_agblock_t agbno_next,bool * crosslinked,xfs_extlen_t * aglenp) xreap_agextent_select() argument 410 xreap_agextent_iter(struct xreap_state * rs,xfs_agblock_t agbno,xfs_extlen_t * aglenp,bool crosslinked) xreap_agextent_iter() argument 524 xreap_configure_limits(struct xreap_state * rs,unsigned int fixed_overhead,unsigned int variable_overhead,unsigned int per_intent,unsigned int per_binval) xreap_configure_limits() argument 554 xreap_configure_agextent_limits(struct xreap_state * rs) xreap_configure_agextent_limits() argument 633 xreap_configure_agcow_limits(struct xreap_state * rs) xreap_configure_agcow_limits() argument 713 struct xreap_state *rs = priv; xreap_agmeta_extent() local 760 struct xreap_state rs = { xrep_reap_agblocks() local 792 struct xreap_state *rs = priv; xreap_fsmeta_extent() local 873 struct xreap_state rs = { xrep_reap_fsblocks() local 905 xreap_rgextent_select(struct xreap_state * rs,xfs_rgblock_t rgbno,xfs_rgblock_t rgbno_next,bool * crosslinked,xfs_extlen_t * rglenp) xreap_rgextent_select() argument 960 xreap_rgextent_iter(struct xreap_state * rs,xfs_rgblock_t rgbno,xfs_extlen_t * rglenp,bool crosslinked) xreap_rgextent_iter() argument 1024 xreap_configure_rgcow_limits(struct xreap_state * rs) xreap_configure_rgcow_limits() argument 1094 struct xreap_state *rs = priv; xreap_rtmeta_extent() local 1158 struct xreap_state rs = { xrep_reap_rtblocks() local 1196 struct xreap_state rs = { xrep_reap_metadir_fsblocks() local 1233 xreap_bmapi_select(struct xreap_state * rs,struct xfs_bmbt_irec * imap,bool * crosslinked) xreap_bmapi_select() argument 1315 xreap_bmapi_binval(struct xreap_state * rs,struct xfs_bmbt_irec * imap) xreap_bmapi_binval() argument 1423 xrep_reap_bmapi_iter(struct xreap_state * rs,struct xfs_bmbt_irec * imap,bool crosslinked) xrep_reap_bmapi_iter() argument 1529 xreap_configure_bmapi_limits(struct xreap_state * rs) xreap_configure_bmapi_limits() argument 1594 xreap_ifork_extent(struct xreap_state * rs,struct xfs_bmbt_irec * imap) xreap_ifork_extent() argument 1647 struct xreap_state rs = { xrep_reap_ifork() local [all...] |
| /linux/include/linux/ |
| H A D | ratelimit.h | 9 static inline void ratelimit_state_init(struct ratelimit_state *rs, in ratelimit_state_init() argument 12 memset(rs, 0, sizeof(*rs)); in ratelimit_state_init() 14 raw_spin_lock_init(&rs->lock); in ratelimit_state_init() 15 rs->interval = interval; in ratelimit_state_init() 16 rs->burst = burst; in ratelimit_state_init() 19 static inline void ratelimit_default_init(struct ratelimit_state *rs) in ratelimit_default_init() argument 21 return ratelimit_state_init(rs, DEFAULT_RATELIMIT_INTERVAL, in ratelimit_default_init() 25 static inline void ratelimit_state_inc_miss(struct ratelimit_state *rs) in ratelimit_state_inc_miss() argument 27 atomic_inc(&rs->missed); in ratelimit_state_inc_miss() 30 static inline int ratelimit_state_get_miss(struct ratelimit_state *rs) in ratelimit_state_get_miss() argument [all …]
|
| H A D | rslib.h | 61 int encode_rs8(struct rs_control *rs, uint8_t *data, int len, uint16_t *par, 65 int decode_rs8(struct rs_control *rs, uint8_t *data, uint16_t *par, int len, 72 int encode_rs16(struct rs_control *rs, uint16_t *data, int len, uint16_t *par, 76 int decode_rs16(struct rs_control *rs, uint16_t *data, uint16_t *par, int len, 107 void free_rs(struct rs_control *rs); 121 static inline int rs_modnn(struct rs_codec *rs, int x) in rs_modnn() argument 123 while (x >= rs->nn) { in rs_modnn() 124 x -= rs->nn; in rs_modnn() 125 x = (x >> rs->mm) + (x & rs->nn); in rs_modnn()
|
| /linux/lib/ |
| H A D | ratelimit.c | 27 int ___ratelimit(struct ratelimit_state *rs, const char *func) in ___ratelimit() argument 33 int interval = READ_ONCE(rs->interval); in ___ratelimit() 34 int burst = READ_ONCE(rs->burst); in ___ratelimit() 45 if (!(READ_ONCE(rs->flags) & RATELIMIT_INITIALIZED) || (!interval && !burst) || in ___ratelimit() 46 !raw_spin_trylock_irqsave(&rs->lock, flags)) in ___ratelimit() 50 rs->flags &= ~RATELIMIT_INITIALIZED; in ___ratelimit() 60 if (!raw_spin_trylock_irqsave(&rs->lock, flags)) { in ___ratelimit() 61 if (READ_ONCE(rs->flags) & RATELIMIT_INITIALIZED && in ___ratelimit() 62 atomic_read(&rs->rs_n_left) > 0 && atomic_dec_return(&rs->rs_n_left) >= 0) in ___ratelimit() 67 if (!(rs->flags & RATELIMIT_INITIALIZED)) { in ___ratelimit() [all …]
|
| H A D | test_hexdump.c | 74 int gs = groupsize, rs = rowsize; in test_hexdump_prepare_test() local 78 if (rs != 16 && rs != 32) in test_hexdump_prepare_test() 79 rs = 16; in test_hexdump_prepare_test() 81 if (l > rs) in test_hexdump_prepare_test() 82 l = rs; in test_hexdump_prepare_test() 114 } while (p < test + rs * 2 + rs / gs + 1); in test_hexdump_prepare_test() 166 int rs = rowsize, gs = groupsize; in test_hexdump_overflow() local 174 r = hex_dump_to_buffer(data_b, len, rs, gs, buf, buflen, ascii); in test_hexdump_overflow() 180 ae = rs * 2 /* hex */ + rs / gs /* spaces */ + 1 /* space */ + len /* ascii */; in test_hexdump_overflow() 190 test_hexdump_prepare_test(len, rs, gs, test, sizeof(test), ascii); in test_hexdump_overflow() [all …]
|
| /linux/lib/crypto/ |
| H A D | des.c | 64 static const u8 rs[256] = { variable 633 pe[15 * 2 + 0] = DES_PC2(a, b, c, d); d = rs[d]; in des_ekey() 634 pe[14 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey() 635 pe[13 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey() 636 pe[12 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey() 637 pe[11 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey() 638 pe[10 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey() 639 pe[ 9 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey() 640 pe[ 8 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; in des_ekey() 641 pe[ 7 * 2 + 0] = DES_PC2(c, d, a, b); b = rs[b]; a = rs[a]; in des_ekey() [all …]
|
| /linux/net/rds/ |
| H A D | bind.c | 70 * marked this socket and don't return a rs ref to the rx path. 76 struct rds_sock *rs; in rds_find_bound() local 80 rs = rhashtable_lookup(&bind_hash_table, key, ht_parms); in rds_find_bound() 81 if (rs && (sock_flag(rds_rs_to_sk(rs), SOCK_DEAD) || in rds_find_bound() 82 !refcount_inc_not_zero(&rds_rs_to_sk(rs)->sk_refcnt))) in rds_find_bound() 83 rs = NULL; in rds_find_bound() 87 rdsdebug("returning rs %p for %pI6c:%u\n", rs, addr, in rds_find_bound() 90 return rs; in rds_find_bound() 94 rds_add_bound(struct rds_sock * rs,const struct in6_addr * addr,__be16 * port,__u32 scope_id) rds_add_bound() argument 148 rds_remove_bound(struct rds_sock * rs) rds_remove_bound() argument 166 struct rds_sock *rs = rds_sk_to_rs(sk); rds_bind() local [all...] |
| H A D | recv.c | 91 static void rds_recv_rcvbuf_delta(struct rds_sock *rs, struct sock *sk, in rds_recv_rcvbuf_delta() argument 100 rs->rs_rcv_bytes += delta; in rds_recv_rcvbuf_delta() 107 if (rs->rs_transport->t_type == RDS_TRANS_LOOP) in rds_recv_rcvbuf_delta() 110 now_congested = rs->rs_rcv_bytes > rds_sk_rcvbuf(rs); in rds_recv_rcvbuf_delta() 112 rdsdebug("rs %p (%pI6c:%u) recv bytes %d buf %d " in rds_recv_rcvbuf_delta() 114 rs, &rs->rs_bound_addr, in rds_recv_rcvbuf_delta() 115 ntohs(rs->rs_bound_port), rs in rds_recv_rcvbuf_delta() 169 rds_recv_incoming_exthdrs(struct rds_incoming * inc,struct rds_sock * rs) rds_recv_incoming_exthdrs() argument 323 struct rds_sock *rs = NULL; rds_recv_incoming() local 455 rds_next_incoming(struct rds_sock * rs,struct rds_incoming ** inc) rds_next_incoming() argument 473 rds_still_queued(struct rds_sock * rs,struct rds_incoming * inc,int drop) rds_still_queued() argument 506 rds_notify_queue_get(struct rds_sock * rs,struct msghdr * msghdr) rds_notify_queue_get() argument 574 rds_notify_cong(struct rds_sock * rs,struct msghdr * msghdr) rds_notify_cong() argument 596 rds_cmsg_recv(struct rds_incoming * inc,struct msghdr * msg,struct rds_sock * rs) rds_cmsg_recv() argument 654 rds_recvmsg_zcookie(struct rds_sock * rs,struct msghdr * msg) rds_recvmsg_zcookie() argument 693 struct rds_sock *rs = rds_sk_to_rs(sk); rds_recvmsg() local 811 rds_clear_recv_queue(struct rds_sock * rs) rds_clear_recv_queue() argument [all...] |
| H A D | send.c | 560 static void rds_send_sndbuf_remove(struct rds_sock *rs, struct rds_message *rm) in rds_send_sndbuf_remove() argument 564 assert_spin_locked(&rs->rs_lock); in rds_send_sndbuf_remove() 566 BUG_ON(rs->rs_snd_bytes < len); in rds_send_sndbuf_remove() 567 rs->rs_snd_bytes -= len; in rds_send_sndbuf_remove() 569 if (rs->rs_snd_bytes == 0) in rds_send_sndbuf_remove() 589 struct rds_sock *rs = NULL; in rds_rdma_send_complete() local 600 rs = rm->m_rs; in rds_rdma_send_complete() 601 sock_hold(rds_rs_to_sk(rs)); in rds_rdma_send_complete() 604 spin_lock(&rs->rs_lock); in rds_rdma_send_complete() 605 list_add_tail(¬ifier->n_list, &rs in rds_rdma_send_complete() 625 struct rds_sock *rs = NULL; rds_atomic_send_complete() local 662 __rds_send_complete(struct rds_sock * rs,struct rds_message * rm,int status) __rds_send_complete() argument 695 struct rds_sock *rs = NULL; rds_send_remove_from_sock() local 809 rds_send_drop_to(struct rds_sock * rs,struct sockaddr_in6 * dest) rds_send_drop_to() argument 905 rds_send_queue_rm(struct rds_sock * rs,struct rds_connection * conn,struct rds_conn_path * cp,struct rds_message * rm,__be16 sport,__be16 dport,int * queued) rds_send_queue_rm() argument 1057 rds_cmsg_zcopy(struct rds_sock * rs,struct rds_message * rm,struct cmsghdr * cmsg) rds_cmsg_zcopy() argument 1070 rds_cmsg_send(struct rds_sock * rs,struct rds_message * rm,struct msghdr * msg,int * allocated_mr,struct rds_iov_vector_arr * vct) rds_cmsg_send() argument 1157 struct rds_sock *rs = rds_sk_to_rs(sk); rds_sendmsg() local [all...] |
| H A D | rdma.c | 97 struct rds_sock *rs = mr->r_sock; in rds_destroy_mr() local 104 spin_lock_irqsave(&rs->rs_rdma_lock, flags); in rds_destroy_mr() 106 rb_erase(&mr->r_rb_node, &rs->rs_rdma_keys); in rds_destroy_mr() 109 spin_unlock_irqrestore(&rs->rs_rdma_lock, flags); in rds_destroy_mr() 128 void rds_rdma_drop_keys(struct rds_sock *rs) in rds_rdma_drop_keys() argument 135 spin_lock_irqsave(&rs->rs_rdma_lock, flags); in rds_rdma_drop_keys() 136 while ((node = rb_first(&rs->rs_rdma_keys))) { in rds_rdma_drop_keys() 138 if (mr->r_trans == rs->rs_transport) in rds_rdma_drop_keys() 140 rb_erase(&mr->r_rb_node, &rs->rs_rdma_keys); in rds_rdma_drop_keys() 142 spin_unlock_irqrestore(&rs in rds_rdma_drop_keys() 173 __rds_rdma_map(struct rds_sock * rs,struct rds_get_mr_args * args,u64 * cookie_ret,struct rds_mr ** mr_ret,struct rds_conn_path * cp) __rds_rdma_map() argument 360 rds_get_mr(struct rds_sock * rs,sockptr_t optval,int optlen) rds_get_mr() argument 373 rds_get_mr_for_dest(struct rds_sock * rs,sockptr_t optval,int optlen) rds_get_mr_for_dest() argument 400 rds_free_mr(struct rds_sock * rs,sockptr_t optval,int optlen) rds_free_mr() argument 446 rds_rdma_unuse(struct rds_sock * rs,u32 r_key,int force) rds_rdma_unuse() argument 637 rds_cmsg_rdma_args(struct rds_sock * rs,struct rds_message * rm,struct cmsghdr * cmsg,struct rds_iov_vector * vec) rds_cmsg_rdma_args() argument 843 rds_cmsg_rdma_dest(struct rds_sock * rs,struct rds_message * rm,struct cmsghdr * cmsg) rds_cmsg_rdma_dest() argument 886 rds_cmsg_rdma_map(struct rds_sock * rs,struct rds_message * rm,struct cmsghdr * cmsg) rds_cmsg_rdma_map() argument 900 rds_cmsg_atomic(struct rds_sock * rs,struct rds_message * rm,struct cmsghdr * cmsg) rds_cmsg_atomic() argument [all...] |
| H A D | cong.c | 266 struct rds_sock *rs; in rds_cong_map_updated() local 269 list_for_each_entry(rs, &rds_cong_monitor, rs_cong_list) { in rds_cong_map_updated() 270 spin_lock(&rs->rs_lock); in rds_cong_map_updated() 271 rs->rs_cong_notify |= (rs->rs_cong_mask & portmask); in rds_cong_map_updated() 272 rs->rs_cong_mask &= ~portmask; in rds_cong_map_updated() 273 spin_unlock(&rs->rs_lock); in rds_cong_map_updated() 274 if (rs->rs_cong_notify) in rds_cong_map_updated() 275 rds_wake_sk_sleep(rs); in rds_cong_map_updated() 338 void rds_cong_add_socket(struct rds_sock *rs) in rds_cong_add_socket() argument 343 if (list_empty(&rs->rs_cong_list)) in rds_cong_add_socket() [all …]
|
| /linux/arch/mips/include/asm/ |
| H A D | uasm.h | 207 void UASM_i_LA_mostly(u32 **buf, unsigned int rs, long addr); 208 void UASM_i_LA(u32 **buf, unsigned int rs, long addr); 218 # define UASM_i_ADDIU(buf, rs, rt, val) uasm_i_daddiu(buf, rs, rt, val) argument 219 # define UASM_i_ADDU(buf, rs, rt, rd) uasm_i_daddu(buf, rs, rt, rd) argument 220 # define UASM_i_LL(buf, rs, rt, off) uasm_i_lld(buf, rs, rt, off) argument 221 # define UASM_i_LW(buf, rs, rt, off) uasm_i_ld(buf, rs, r argument 210 UASM_i_ADDIU(buf,rs,rt,val) global() argument 211 UASM_i_ADDU(buf,rs,rt,rd) global() argument 212 UASM_i_LL(buf,rs,rt,off) global() argument 213 UASM_i_LW(buf,rs,rt,off) global() argument 214 UASM_i_LWX(buf,rs,rt,rd) global() argument 217 UASM_i_ROTR(buf,rs,rt,sh) global() argument 222 UASM_i_SRL_SAFE(buf,rs,rt,sh) global() argument 223 UASM_i_SUBU(buf,rs,rt,rd) global() argument 224 UASM_i_SW(buf,rs,rt,off) global() argument 226 UASM_i_ADDIU(buf,rs,rt,val) global() argument 227 UASM_i_ADDU(buf,rs,rt,rd) global() argument 228 UASM_i_LL(buf,rs,rt,off) global() argument 229 UASM_i_LW(buf,rs,rt,off) global() argument 230 UASM_i_LWX(buf,rs,rt,rd) global() argument 233 UASM_i_ROTR(buf,rs,rt,sh) global() argument 234 UASM_i_SC(buf,rs,rt,off) global() argument 235 UASM_i_SLL(buf,rs,rt,sh) global() argument 236 UASM_i_SRA(buf,rs,rt,sh) global() argument 237 UASM_i_SRL(buf,rs,rt,sh) global() argument 238 UASM_i_SRL_SAFE(buf,rs,rt,sh) global() argument 239 UASM_i_SUBU(buf,rs,rt,rd) global() argument 240 UASM_i_SW(buf,rs,rt,off) global() argument 244 uasm_i_beqz(buf,rs,off) global() argument 245 uasm_i_beqzl(buf,rs,off) global() argument 246 uasm_i_bnez(buf,rs,off) global() argument 247 uasm_i_bnezl(buf,rs,off) global() argument [all...] |
| /linux/arch/mips/kernel/ |
| H A D | mips-r2-to-r6-emul.c | 405 s32 rt, rs; in mult_func() local 408 rs = regs->regs[MIPSInst_RS(ir)]; in mult_func() 409 res = (s64)rt * (s64)rs; in mult_func() 411 rs = res; in mult_func() 412 regs->lo = (s64)rs; in mult_func() 432 u32 rt, rs; in multu_func() local 435 rs = regs->regs[MIPSInst_RS(ir)]; in multu_func() 436 res = (u64)rt * (u64)rs; in multu_func() 455 s32 rt, rs; in div_func() local 458 rs = regs->regs[MIPSInst_RS(ir)]; in div_func() [all …]
|
| H A D | branch.c | 83 *contpc = regs->regs[insn.mm_i_format.rs]; in __mm_isBranchInstr() 97 if ((long)regs->regs[insn.mm_i_format.rs] < 0) in __mm_isBranchInstr() 113 if ((long)regs->regs[insn.mm_i_format.rs] >= 0) in __mm_isBranchInstr() 123 if ((long)regs->regs[insn.mm_i_format.rs] <= 0) in __mm_isBranchInstr() 133 if ((long)regs->regs[insn.mm_i_format.rs] <= 0) in __mm_isBranchInstr() 162 bit = (insn.mm_i_format.rs >> 2); in __mm_isBranchInstr() 185 *contpc = regs->regs[insn.mm_i_format.rs]; in __mm_isBranchInstr() 190 if ((long)regs->regs[reg16to32map[insn.mm_b1_format.rs]] == 0) in __mm_isBranchInstr() 199 if ((long)regs->regs[reg16to32map[insn.mm_b1_format.rs]] != 0) in __mm_isBranchInstr() 212 if (regs->regs[insn.mm_i_format.rs] == in __mm_isBranchInstr() [all …]
|
| /linux/arch/riscv/net/ |
| H A D | bpf_jit_comp64.c | 246 static void emit_bcc(u8 cond, u8 rd, u8 rs, int rvoff, 251 emit(rv_beq(rd, rs, rvoff >> 1), ctx); in emit_bcc() 254 emit(rv_bltu(rs, rd, rvoff >> 1), ctx); in emit_bcc() 257 emit(rv_bltu(rd, rs, rvoff >> 1), ctx); in emit_bcc() 260 emit(rv_bgeu(rd, rs, rvoff >> 1), ctx); in emit_bcc() 263 emit(rv_bgeu(rs, rd, rvoff >> 1), ctx); in emit_bcc() 266 emit(rv_bne(rd, rs, rvoff >> 1), ctx); in emit_bcc() 269 emit(rv_blt(rs, rd, rvoff >> 1), ctx); in emit_bcc() 272 emit(rv_blt(rd, rs, rvoff >> 1), ctx); in emit_bcc() 275 emit(rv_bge(rd, rs, rvof in emit_bcc() 247 emit_bcc(u8 cond,u8 rd,u8 rs,int rvoff,struct rv_jit_context * ctx) emit_bcc() argument 283 emit_branch(u8 cond,u8 rd,u8 rs,int rvoff,struct rv_jit_context * ctx) emit_branch() argument 376 init_regs(u8 * rd,u8 * rs,const struct bpf_insn * insn,struct rv_jit_context * ctx) init_regs() argument 446 emit_ldx_insn(u8 rd,s16 off,u8 rs,u8 size,bool sign_ext,struct rv_jit_context * ctx) emit_ldx_insn() argument 466 emit_stx_insn(u8 rd,s16 off,u8 rs,u8 size,struct rv_jit_context * ctx) emit_stx_insn() argument 484 emit_ldx(u8 rd,s16 off,u8 rs,u8 size,bool sign_ext,struct rv_jit_context * ctx) emit_ldx() argument 518 emit_stx(u8 rd,s16 off,u8 rs,u8 size,struct rv_jit_context * ctx) emit_stx() argument 534 emit_atomic_ld_st(u8 rd,u8 rs,const struct bpf_insn * insn,struct rv_jit_context * ctx) emit_atomic_ld_st() argument 576 emit_atomic_rmw(u8 rd,u8 rs,const struct bpf_insn * insn,struct rv_jit_context * ctx) emit_atomic_rmw() argument 687 sign_extend(u8 rd,u8 rs,u8 sz,bool sign,struct rv_jit_context * ctx) sign_extend() argument 1390 u8 rd = -1, rs = -1, code = insn->code; bpf_jit_emit_insn() local [all...] |
| /linux/drivers/platform/chrome/wilco_ec/ |
| H A D | properties.c | 36 struct ec_property_response *rs) in send_property_msg() argument 45 ec_msg.response_data = rs; in send_property_msg() 46 ec_msg.response_size = sizeof(*rs); in send_property_msg() 51 if (rs->op != rq->op) in send_property_msg() 53 if (memcmp(rq->property_id, rs->property_id, sizeof(rs->property_id))) in send_property_msg() 63 struct ec_property_response rs; in wilco_ec_get_property() local 70 ret = send_property_msg(ec, &rq, &rs); in wilco_ec_get_property() 74 prop_msg->length = rs.length; in wilco_ec_get_property() 75 memcpy(prop_msg->data, rs.data, rs.length); in wilco_ec_get_property() 85 struct ec_property_response rs; in wilco_ec_set_property() local [all …]
|
| H A D | mailbox.c | 119 struct wilco_ec_response *rs; in wilco_ec_transfer() local 155 rs = ec->data_buffer; in wilco_ec_transfer() 157 sizeof(*rs) + EC_MAILBOX_DATA_SIZE, in wilco_ec_transfer() 158 (u8 *)rs); in wilco_ec_transfer() 162 dev_dbg(ec->dev, "bad packet checksum 0x%02x\n", rs->checksum); in wilco_ec_transfer() 166 if (rs->result) { in wilco_ec_transfer() 167 dev_dbg(ec->dev, "EC reported failure: 0x%02x\n", rs->result); in wilco_ec_transfer() 171 if (rs->data_size != EC_MAILBOX_DATA_SIZE) { in wilco_ec_transfer() 173 rs->data_size, EC_MAILBOX_DATA_SIZE); in wilco_ec_transfer() 177 if (rs->data_size < msg->response_size) { in wilco_ec_transfer() [all …]
|
| /linux/drivers/net/wireless/ath/ath5k/ |
| H A D | desc.c | 603 struct ath5k_rx_status *rs) in ath5k_hw_proc_5210_rx_status() argument 614 memset(rs, 0, sizeof(struct ath5k_rx_status)); in ath5k_hw_proc_5210_rx_status() 619 rs->rs_datalen = rx_status->rx_status_0 & in ath5k_hw_proc_5210_rx_status() 621 rs->rs_rssi = AR5K_REG_MS(rx_status->rx_status_0, in ath5k_hw_proc_5210_rx_status() 623 rs->rs_rate = AR5K_REG_MS(rx_status->rx_status_0, in ath5k_hw_proc_5210_rx_status() 625 rs->rs_more = !!(rx_status->rx_status_0 & in ath5k_hw_proc_5210_rx_status() 632 rs->rs_tstamp = AR5K_REG_MS(rx_status->rx_status_1, in ath5k_hw_proc_5210_rx_status() 636 rs->rs_antenna = AR5K_REG_MS(rx_status->rx_status_0, in ath5k_hw_proc_5210_rx_status() 639 rs->rs_antenna = (rx_status->rx_status_0 & in ath5k_hw_proc_5210_rx_status() 647 rs->rs_keyix = AR5K_REG_MS(rx_status->rx_status_1, in ath5k_hw_proc_5210_rx_status() [all …]
|
| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | xen_shinfo_test.c | 191 struct vcpu_runstate_info *rs = (void *)RUNSTATE_VADDR; in guest_code() local 203 GUEST_ASSERT(rs->time[RUNSTATE_runnable] != 0); in guest_code() 204 GUEST_ASSERT(rs->state == 0); in guest_code() 207 GUEST_ASSERT(rs->time[RUNSTATE_blocked] != 0); in guest_code() 208 GUEST_ASSERT(rs->state == 0); in guest_code() 211 GUEST_ASSERT(rs->time[RUNSTATE_offline] != 0); in guest_code() 212 GUEST_ASSERT(rs->state == 0); in guest_code() 216 GUEST_ASSERT(rs->time[RUNSTATE_blocked] == 0x5a); in guest_code() 217 GUEST_ASSERT(rs->time[RUNSTATE_offline] == 0x6b6b); in guest_code() 221 GUEST_ASSERT(rs in guest_code() 612 struct vcpu_runstate_info *rs = addr_gpa2hva(vm, RUNSTATE_ADDR); main() local [all...] |
| /linux/drivers/net/wireless/ath/ |
| H A D | dfs_pri_detector.c | 235 if (delta_ts < pde->rs->pri_min) in pseq_handler_create_sequences() 239 if (delta_ts > pde->rs->pri_max) in pseq_handler_create_sequences() 248 ps.pri = GET_PRI_TO_USE(pde->rs->pri_min, in pseq_handler_create_sequences() 249 pde->rs->pri_max, ts - p->ts); in pseq_handler_create_sequences() 250 ps.dur = ps.pri * (pde->rs->ppb - 1) in pseq_handler_create_sequences() 251 + 2 * pde->rs->max_pri_tolerance; in pseq_handler_create_sequences() 264 pde->rs->max_pri_tolerance); in pseq_handler_create_sequences() 321 pde->rs->max_pri_tolerance); in pseq_handler_add_to_existing_seqs() 349 if ((ps->count >= pde->rs->ppb_thresh) && in pseq_handler_check_detection() 350 (ps->count * pde->rs->num_pri >= ps->count_falses)) in pseq_handler_check_detection() [all …]
|