Home
last modified time | relevance | path

Searched refs:rs (Results 1 – 25 of 272) sorted by relevance

1234567891011

/linux-6.3-rc2/drivers/md/
A Ddm-raid.c514 if (rs->ctr_flags & ~__valid_flags(rs)) { in rs_check_for_valid_flags()
762 rs->md.new_level = rs->md.level; in raid_set_alloc()
764 rs->md.new_layout = rs->md.layout; in raid_set_alloc()
790 dm_put_device(rs->ti, rs->journal_dev.dev); in raid_set_free()
845 rs->dev[i].rdev.mddev = &rs->md; in parse_dev_params()
1872 return rs->md.new_level != rs->md.level; in rs_takeover_requested()
2025 else if (!(rs_is_raid1(rs) || rs_is_raid10(rs) || rs_is_raid456(rs))) in rs_check_reshape()
2790 mddev->degraded = rs->delta_disks < 0 ? -rs->delta_disks : rs->delta_disks; in rs_prepare_reshape()
3067 rs->array_sectors = rs->md.array_sectors; in raid_ctr()
3068 rs->dev_sectors = rs->md.dev_sectors; in raid_ctr()
[all …]
/linux-6.3-rc2/drivers/spi/
A Dspi-rockchip.c309 rs->tx += rs->n_bytes; in rockchip_spi_pio_writer()
343 rs->rx += rs->n_bytes; in rockchip_spi_pio_reader()
381 rs->tx_left = rs->tx ? xfer->len / rs->n_bytes : 0; in rockchip_spi_prepare_irq()
382 rs->rx_left = xfer->len / rs->n_bytes; in rockchip_spi_prepare_irq()
590 if ((xfer->len / rs->n_bytes) < rs->fifo_len) in rockchip_spi_config()
627 rs->rx = rs->xfer->rx_buf; in rockchip_spi_slave_abort()
634 rs->rx += rs->xfer->len - rs->n_bytes * state.residue; in rockchip_spi_slave_abort()
648 rs->rx += rs->n_bytes; in rockchip_spi_slave_abort()
650 rs->xfer->len = (unsigned int)(rs->rx - rs->xfer->rx_buf); in rockchip_spi_slave_abort()
823 rs->freq = clk_get_rate(rs->spiclk); in rockchip_spi_probe()
[all …]
A Dspi-mt7621.c93 rs->pending_write = 0; in mt7621_spi_set_cs()
120 rs->speed = speed; in mt7621_spi_prepare()
166 rs->pending_write = 0; in mt7621_spi_read_half_duplex()
218 rs->pending_write = len; in mt7621_spi_write_half_duplex()
219 mt7621_spi_flush(rs); in mt7621_spi_write_half_duplex()
243 rs->pending_write = len; in mt7621_spi_write_half_duplex()
290 mt7621_spi_flush(rs); in mt7621_spi_transfer_one_message()
327 struct mt7621_spi *rs; in mt7621_spi_probe() local
362 rs->base = base; in mt7621_spi_probe()
363 rs->master = master; in mt7621_spi_probe()
[all …]
/linux-6.3-rc2/lib/reed_solomon/
A Dreed_solomon.c76 rs = kzalloc(sizeof(*rs), gfp); in codec_init()
77 if (!rs) in codec_init()
105 rs->alpha_to[rs->nn] = 0; /* alpha**-inf = 0 */ in codec_init()
140 rs->genpoly[j] = rs->genpoly[j -1] ^ in codec_init()
141 rs->alpha_to[rs_modnn(rs, in codec_init()
142 rs->index_of[rs->genpoly[j]] + root)]; in codec_init()
144 rs->genpoly[j] = rs->genpoly[j - 1]; in codec_init()
148 rs->alpha_to[rs_modnn(rs, in codec_init()
149 rs->index_of[rs->genpoly[0]] + root)]; in codec_init()
153 rs->genpoly[i] = rs->index_of[rs->genpoly[i]]; in codec_init()
[all …]
A Dtest_rslib.c110 int nroots = rs->nroots; in alloc_ws()
112 int nn = rs->nn; in alloc_ws()
154 int nroots = rs->codec->nroots; in get_rcw_we()
158 int nn = rs->codec->nn; in get_rcw_we()
235 int nroots = rs->nroots; in compute_syndrome()
236 int prim = rs->prim; in compute_syndrome()
237 int fcr = rs->fcr; in compute_syndrome()
256 syn[i] = rs->index_of[syn[i]]; in compute_syndrome()
323 int nroots = rs->codec->nroots; in ex_rs_helper()
370 int nroots = rs->codec->nroots; in test_bc()
[all …]
A Ddecode_rs.c13 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;
111 lambda[1] = alpha_to[rs_modnn(rs,
[all …]
A Dencode_rs.c13 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-6.3-rc2/net/rds/
A Daf_rds.c62 struct rds_sock *rs; in rds_release() local
67 rs = rds_sk_to_rs(sk); in rds_release()
76 rds_remove_bound(rs); in rds_release()
242 if (rs->rs_snd_bytes < rds_sk_sndbuf(rs)) in rds_poll()
272 if (rs->rs_tos || rs->rs_conn) { in rds_ioctl()
276 rs->rs_tos = tos; in rds_ioctl()
281 tos = rs->rs_tos; in rds_ioctl()
519 trans = (rs->rs_transport ? rs->rs_transport->t_type : in rds_getsockopt()
663 WARN_ON((&rs->rs_item != rs->rs_item.next || in rds_sock_destruct()
664 &rs->rs_item != rs->rs_item.prev)); in rds_sock_destruct()
[all …]
A Dbind.c76 struct rds_sock *rs; in rds_find_bound() local
81 if (rs && (sock_flag(rds_rs_to_sk(rs), SOCK_DEAD) || in rds_find_bound()
83 rs = NULL; in rds_find_bound()
90 return rs; in rds_find_bound()
122 memcpy(rs->rs_bound_key, key, sizeof(rs->rs_bound_key)); in rds_add_bound()
128 rds_sock_addref(rs); in rds_add_bound()
139 rds_sock_put(rs); in rds_add_bound()
155 rs, &rs->rs_bound_addr, in rds_remove_bound()
159 rds_sock_put(rs); in rds_remove_bound()
245 if (rs->rs_transport) { in rds_bind()
[all …]
A Drecv.c107 now_congested = rs->rs_rcv_bytes > rds_sk_rcvbuf(rs); in rds_recv_rcvbuf_delta()
111 rs, &rs->rs_bound_addr, in rds_recv_rcvbuf_delta()
112 ntohs(rs->rs_bound_port), rs->rs_rcv_bytes, in rds_recv_rcvbuf_delta()
117 rs->rs_congested = 1; in rds_recv_rcvbuf_delta()
124 else if (rs->rs_congested && (rs->rs_rcv_bytes < (rds_sk_rcvbuf(rs)/2))) { in rds_recv_rcvbuf_delta()
125 rs->rs_congested = 0; in rds_recv_rcvbuf_delta()
364 if (!rs) { in rds_recv_incoming()
373 sk = rds_rs_to_sk(rs); in rds_recv_incoming()
395 if (rs) in rds_recv_incoming()
396 rds_sock_put(rs); in rds_recv_incoming()
[all …]
A Dsend.c526 if (rs) { in rds_rdma_send_complete()
562 if (rs) { in rds_atomic_send_complete()
633 if (rs) { in rds_send_remove_from_sock()
638 if (rs) in rds_send_remove_from_sock()
641 if (!rs) in rds_send_remove_from_sock()
672 if (rs) { in rds_send_remove_from_sock()
843 if (rs->rs_snd_bytes < rds_sk_sndbuf(rs)) { in rds_send_queue_rm()
851 if (rs->rs_snd_bytes >= rds_sk_sndbuf(rs) / 2) in rds_send_queue_rm()
874 rm, len, rs, rs->rs_snd_bytes, in rds_send_queue_rm()
1292 rs->rs_tos == rs->rs_conn->c_tos) { in rds_sendmsg()
[all …]
A Drdma.c97 struct rds_sock *rs = mr->r_sock; in rds_destroy_mr() local
147 if (rs->rs_transport && rs->rs_transport->flush_mrs) in rds_rdma_drop_keys()
148 rs->rs_transport->flush_mrs(); in rds_rdma_drop_keys()
188 if (ipv6_addr_any(&rs->rs_bound_addr) || !rs->rs_transport) { in __rds_rdma_map()
193 if (!rs->rs_transport->get_mr) { in __rds_rdma_map()
245 mr->r_trans = rs->rs_transport; in __rds_rdma_map()
246 mr->r_sock = rs; in __rds_rdma_map()
410 if (!rs->rs_transport || !rs->rs_transport->flush_mrs) in rds_free_mr()
712 rs->rs_user_addr = iov->addr; in rds_cmsg_rdma_args()
739 local_odp_mr->r_sock = rs; in rds_cmsg_rdma_args()
[all …]
A Dcong.c266 struct rds_sock *rs; in rds_cong_map_updated() local
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()
343 if (list_empty(&rs->rs_cong_list)) in rds_cong_add_socket()
354 list_del_init(&rs->rs_cong_list); in rds_cong_remove_socket()
369 struct rds_sock *rs) in rds_cong_wait() argument
[all …]
/linux-6.3-rc2/fs/jffs2/
A Dcompr_rubin.c92 rs->q = 0; in init_rubin()
109 ((rs->p + rs->q) <= UPPER_BIT_RUBIN)) { in encode()
129 rs->p = i0; in encode()
131 rs->p = i1; in encode()
159 rs->rec_q = rs->rec_q * 2 + (long) (pullbit(&rs->pp))) in init_decode()
182 rs->p = p; in __do_decode()
183 rs->q = q; in __do_decode()
202 unsigned long p = rs->p, q = rs->q; in decode()
223 rs->p = i0; in decode()
237 ret = encode(rs, rs->bit_divider-rs->bits[i], in out_byte()
[all …]
/linux-6.3-rc2/net/ipv4/
A Dtcp_rate.c81 struct rate_sample *rs) in tcp_rate_skb_delivered() argument
91 if (!rs->prior_delivered || in tcp_rate_skb_delivered()
142 rs->delivered = -1; in tcp_rate_gen()
143 rs->interval_us = -1; in tcp_rate_gen()
146 rs->delivered = tp->delivered - rs->prior_delivered; in tcp_rate_gen()
148 rs->delivered_ce = tp->delivered_ce - rs->prior_delivered_ce; in tcp_rate_gen()
163 rs->snd_interval_us = snd_us; in tcp_rate_gen()
174 if (!rs->is_retrans) in tcp_rate_gen()
176 rs->interval_us, rs->delivered, in tcp_rate_gen()
179 rs->interval_us = -1; in tcp_rate_gen()
[all …]
/linux-6.3-rc2/fs/isofs/
A Drock.c58 (rs->len)++; in setup_rock_ridge()
59 rs->chr = (unsigned char *)de + rs->len; in setup_rock_ridge()
60 rs->len = *((unsigned char *)de) - rs->len; in setup_rock_ridge()
62 rs->len = 0; in setup_rock_ridge()
74 memset(rs, 0, sizeof(*rs)); in init_rock_state()
99 rs->cont_extent, rs->cont_offset, rs->cont_size); in rock_continue()
107 rs->buffer = kmalloc(rs->cont_size, GFP_KERNEL); in rock_continue()
115 bh = sb_bread(rs->inode->i_sb, rs->cont_extent); in rock_continue()
117 memcpy(rs->buffer, bh->b_data + rs->cont_offset, in rock_continue()
120 rs->chr = rs->buffer; in rock_continue()
[all …]
/linux-6.3-rc2/lib/crypto/
A Ddes.c652 w = (a ^ c) | (b ^ d) | (rs[a] ^ c) | (b ^ rs[d]); in des_ekey()
663 w |= (a ^ c) | (b ^ d) | (rs[a] ^ c) | (b ^ rs[d]); in des_ekey()
726 pe[ 1 * 2] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in dkey()
727 pe[ 2 * 2] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in dkey()
728 pe[ 3 * 2] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in dkey()
729 pe[ 4 * 2] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in dkey()
730 pe[ 5 * 2] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in dkey()
731 pe[ 6 * 2] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in dkey()
733 pe[ 8 * 2] = DES_PC2(c, d, a, b); b = rs[b]; a = rs[a]; in dkey()
734 pe[ 9 * 2] = DES_PC2(a, b, c, d); d = rs[d]; c = rs[c]; in dkey()
[all …]
/linux-6.3-rc2/lib/
A Dratelimit.c34 int burst = READ_ONCE(rs->burst); in ___ratelimit()
50 if (!rs->begin) in ___ratelimit()
51 rs->begin = jiffies; in ___ratelimit()
54 if (rs->missed) { in ___ratelimit()
58 func, rs->missed); in ___ratelimit()
59 rs->missed = 0; in ___ratelimit()
62 rs->begin = jiffies; in ___ratelimit()
63 rs->printed = 0; in ___ratelimit()
65 if (burst && burst > rs->printed) { in ___ratelimit()
66 rs->printed++; in ___ratelimit()
[all …]
/linux-6.3-rc2/arch/mips/include/asm/
A Duasm.h215 # define UASM_i_LW(buf, rs, rt, off) uasm_i_ld(buf, rs, rt, off) argument
216 # define UASM_i_LWX(buf, rs, rt, rd) uasm_i_ldx(buf, rs, rt, rd) argument
226 # define UASM_i_SW(buf, rs, rt, off) uasm_i_sd(buf, rs, rt, off) argument
230 # define UASM_i_LL(buf, rs, rt, off) uasm_i_ll(buf, rs, rt, off) argument
231 # define UASM_i_LW(buf, rs, rt, off) uasm_i_lw(buf, rs, rt, off) argument
232 # define UASM_i_LWX(buf, rs, rt, rd) uasm_i_lwx(buf, rs, rt, rd) argument
236 # define UASM_i_SC(buf, rs, rt, off) uasm_i_sc(buf, rs, rt, off) argument
246 #define uasm_i_beqz(buf, rs, off) uasm_i_beq(buf, rs, 0, off) argument
247 #define uasm_i_beqzl(buf, rs, off) uasm_i_beql(buf, rs, 0, off) argument
248 #define uasm_i_bnez(buf, rs, off) uasm_i_bne(buf, rs, 0, off) argument
[all …]
/linux-6.3-rc2/fs/reiserfs/
A Dobjectid.c13 (__le32 *)((rs) + 1))
53 __le32 *map = objectid_map(s, rs); in reiserfs_get_unused_objectid()
89 set_sb_oid_cursize(rs, sb_oid_cursize(rs) - 2); in reiserfs_get_unused_objectid()
102 __le32 *map = objectid_map(s, rs); in reiserfs_release_objectid()
119 while (i < sb_oid_cursize(rs)) { in reiserfs_release_objectid()
131 (sb_oid_cursize(rs) - i - in reiserfs_release_objectid()
133 set_sb_oid_cursize(rs, sb_oid_cursize(rs) - 2); in reiserfs_release_objectid()
136 sb_oid_cursize(rs) > sb_oid_maxsize(rs), in reiserfs_release_objectid()
138 sb_oid_cursize(rs), sb_oid_maxsize(rs)); in reiserfs_release_objectid()
159 if (sb_oid_cursize(rs) == sb_oid_maxsize(rs)) { in reiserfs_release_objectid()
[all …]
/linux-6.3-rc2/include/linux/
A Dratelimit.h9 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()
21 return ratelimit_state_init(rs, DEFAULT_RATELIMIT_INTERVAL, in ratelimit_default_init()
27 if (!(rs->flags & RATELIMIT_MSG_ON_RELEASE)) in ratelimit_state_exit()
30 if (rs->missed) { in ratelimit_state_exit()
32 current->comm, rs->missed); in ratelimit_state_exit()
33 rs->missed = 0; in ratelimit_state_exit()
[all …]
/linux-6.3-rc2/arch/mips/kernel/
A Dmips-r2-to-r6-emul.c405 s32 rt, rs; in mult_func() local
411 rs = res; in mult_func()
432 u32 rt, rs; in multu_func() local
455 s32 rt, rs; in div_func() local
477 u32 rt, rs; in divu_func() local
500 s64 rt, rs; in dmult_func() local
760 rs = res; in mul_func()
778 u32 rs; in clz_func() local
803 u32 rs; in clo_func() local
827 u64 rs; in dclz_func() local
[all …]
/linux-6.3-rc2/drivers/platform/chrome/wilco_ec/
A Dproperties.c36 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 …]
/linux-6.3-rc2/drivers/net/wireless/ath/ath5k/
A Ddesc.c603 struct ath5k_rx_status *rs) in ath5k_hw_proc_5210_rx_status() argument
659 rs->rs_status |= AR5K_RXERR_CRC; in ath5k_hw_proc_5210_rx_status()
665 rs->rs_status |= AR5K_RXERR_FIFO; in ath5k_hw_proc_5210_rx_status()
669 rs->rs_status |= AR5K_RXERR_PHY; in ath5k_hw_proc_5210_rx_status()
697 struct ath5k_rx_status *rs) in ath5k_hw_proc_5212_rx_status() argument
716 rs->rs_rssi = AR5K_REG_MS(rxstat0, in ath5k_hw_proc_5212_rx_status()
718 rs->rs_rate = AR5K_REG_MS(rxstat0, in ath5k_hw_proc_5212_rx_status()
723 rs->rs_tstamp = AR5K_REG_MS(rxstat1, in ath5k_hw_proc_5212_rx_status()
740 rs->rs_status |= AR5K_RXERR_CRC; in ath5k_hw_proc_5212_rx_status()
743 rs->rs_status |= AR5K_RXERR_PHY; in ath5k_hw_proc_5212_rx_status()
[all …]
/linux-6.3-rc2/tools/testing/selftests/kvm/x86_64/
A Dxen_shinfo_test.c175 GUEST_ASSERT(rs->state == 0); in guest_code()
621 rs->state = 0x5a; in main()
645 TEST_ASSERT(rs->state_entry_time == rs->time[0] + in main()
646 rs->time[1] + rs->time[2] + rs->time[3], in main()
1017 rs->state <= RUNSTATE_offline ? runstate_names[rs->state] : "unknown", in main()
1018 rs->state, rs->state_entry_time); in main()
1037 crs = (void *)rs; in main()
1039 memset(rs, 0xa5, sizeof(*rs)); in main()
1077 memset(rs, 0xa5, sizeof(*rs)); in main()
1103 TEST_ASSERT(rs->state_entry_time == rs->time[0] + in main()
[all …]

Completed in 75 milliseconds

1234567891011