Home
last modified time | relevance | path

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

12345678910>>...12

/linux-6.6.21/drivers/md/
Ddm-raid.c260 static void rs_config_backup(struct raid_set *rs, struct rs_layout *l) in rs_config_backup() argument
262 struct mddev *mddev = &rs->md; in rs_config_backup()
269 static void rs_config_restore(struct raid_set *rs, struct rs_layout *l) in rs_config_restore() argument
271 struct mddev *mddev = &rs->md; in rs_config_restore()
400 static bool rs_is_raid0(struct raid_set *rs) in rs_is_raid0() argument
402 return !rs->md.level; in rs_is_raid0()
406 static bool rs_is_raid1(struct raid_set *rs) in rs_is_raid1() argument
408 return rs->md.level == 1; in rs_is_raid1()
412 static bool rs_is_raid10(struct raid_set *rs) in rs_is_raid10() argument
414 return rs->md.level == 10; in rs_is_raid10()
[all …]
/linux-6.6.21/drivers/spi/
Dspi-rockchip.c204 static inline void spi_enable_chip(struct rockchip_spi *rs, bool enable) in spi_enable_chip() argument
206 writel_relaxed((enable ? 1U : 0U), rs->regs + ROCKCHIP_SPI_SSIENR); in spi_enable_chip()
209 static inline void wait_for_tx_idle(struct rockchip_spi *rs, bool target_mode) in wait_for_tx_idle() argument
215 if (!(readl_relaxed(rs->regs + ROCKCHIP_SPI_SR) & SR_TARGET_TX_BUSY) && in wait_for_tx_idle()
216 !((readl_relaxed(rs->regs + ROCKCHIP_SPI_SR) & SR_BUSY))) in wait_for_tx_idle()
219 if (!(readl_relaxed(rs->regs + ROCKCHIP_SPI_SR) & SR_BUSY)) in wait_for_tx_idle()
224 dev_warn(rs->dev, "spi controller is in busy state!\n"); in wait_for_tx_idle()
227 static u32 get_fifo_len(struct rockchip_spi *rs) in get_fifo_len() argument
231 ver = readl_relaxed(rs->regs + ROCKCHIP_SPI_VERSION); in get_fifo_len()
245 struct rockchip_spi *rs = spi_controller_get_devdata(ctlr); in rockchip_spi_set_cs() local
[all …]
Dspi-mt7621.c68 static inline u32 mt7621_spi_read(struct mt7621_spi *rs, u32 reg) in mt7621_spi_read() argument
70 return ioread32(rs->base + reg); in mt7621_spi_read()
73 static inline void mt7621_spi_write(struct mt7621_spi *rs, u32 reg, u32 val) in mt7621_spi_write() argument
75 iowrite32(val, rs->base + reg); in mt7621_spi_write()
80 struct mt7621_spi *rs = spidev_to_mt7621_spi(spi); in mt7621_spi_set_cs() local
90 master = mt7621_spi_read(rs, MT7621_SPI_MASTER); in mt7621_spi_set_cs()
93 mt7621_spi_write(rs, MT7621_SPI_MASTER, master); in mt7621_spi_set_cs()
95 rs->pending_write = 0; in mt7621_spi_set_cs()
99 mt7621_spi_write(rs, MT7621_SPI_POLAR, polar); in mt7621_spi_set_cs()
104 struct mt7621_spi *rs = spidev_to_mt7621_spi(spi); in mt7621_spi_prepare() local
[all …]
/linux-6.6.21/lib/reed_solomon/
Dreed_solomon.c74 struct rs_codec *rs; in codec_init() local
76 rs = kzalloc(sizeof(*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->fcr = fcr; in codec_init()
85 rs->prim = prim; in codec_init()
86 rs->nroots = nroots; in codec_init()
87 rs->gfpoly = gfpoly; in codec_init()
[all …]
Dtest_rslib.c108 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()
151 static int get_rcw_we(struct rs_control *rs, struct wspace *ws, in get_rcw_we() argument
154 int nroots = rs->codec->nroots; in get_rcw_we()
158 int nn = rs->codec->nn; in get_rcw_we()
170 encode_rs16(rs, c, dlen, c + dlen, 0); in get_rcw_we()
232 struct rs_codec *rs = rsc->codec; in compute_syndrome() local
233 uint16_t *alpha_to = rs->alpha_to; in compute_syndrome()
234 uint16_t *index_of = rs->index_of; in compute_syndrome()
[all …]
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;
72 alpha_to[rs_modnn(rs, index_of[syn[i]] +
[all …]
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.6.21/net/rds/
Daf_rds.c62 struct rds_sock *rs; in rds_release() local
67 rs = rds_sk_to_rs(sk); in rds_release()
73 rds_clear_recv_queue(rs); in rds_release()
74 rds_cong_remove_socket(rs); in rds_release()
76 rds_remove_bound(rs); in rds_release()
78 rds_send_drop_to(rs, NULL); in rds_release()
79 rds_rdma_drop_keys(rs); in rds_release()
80 rds_notify_queue_get(rs, NULL); in rds_release()
81 rds_notify_msg_zcopy_purge(&rs->rs_zcookie_queue); in rds_release()
84 list_del_init(&rs->rs_item); in rds_release()
[all …]
Dbind.c76 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 static int rds_add_bound(struct rds_sock *rs, const struct in6_addr *addr, in rds_add_bound() argument
122 memcpy(rs->rs_bound_key, key, sizeof(rs->rs_bound_key)); in rds_add_bound()
123 rs->rs_bound_addr = *addr; in rds_add_bound()
[all …]
Drecv.c88 static void rds_recv_rcvbuf_delta(struct rds_sock *rs, struct sock *sk, in rds_recv_rcvbuf_delta() argument
97 rs->rs_rcv_bytes += delta; in rds_recv_rcvbuf_delta()
104 if (rs->rs_transport->t_type == RDS_TRANS_LOOP) in rds_recv_rcvbuf_delta()
107 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()
113 rds_sk_rcvbuf(rs), now_congested, delta); in rds_recv_rcvbuf_delta()
116 if (!rs->rs_congested && now_congested) { 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()
[all …]
Dsend.c473 static void rds_send_sndbuf_remove(struct rds_sock *rs, struct rds_message *rm) in rds_send_sndbuf_remove() argument
477 assert_spin_locked(&rs->rs_lock); in rds_send_sndbuf_remove()
479 BUG_ON(rs->rs_snd_bytes < len); in rds_send_sndbuf_remove()
480 rs->rs_snd_bytes -= len; in rds_send_sndbuf_remove()
482 if (rs->rs_snd_bytes == 0) in rds_send_sndbuf_remove()
502 struct rds_sock *rs = NULL; in rds_rdma_send_complete() local
513 rs = rm->m_rs; in rds_rdma_send_complete()
514 sock_hold(rds_rs_to_sk(rs)); in rds_rdma_send_complete()
517 spin_lock(&rs->rs_lock); in rds_rdma_send_complete()
518 list_add_tail(&notifier->n_list, &rs->rs_notify_queue); in rds_rdma_send_complete()
[all …]
Drdma.c97 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()
127 void rds_rdma_drop_keys(struct rds_sock *rs) in rds_rdma_drop_keys() argument
134 spin_lock_irqsave(&rs->rs_rdma_lock, flags); in rds_rdma_drop_keys()
135 while ((node = rb_first(&rs->rs_rdma_keys))) { in rds_rdma_drop_keys()
137 if (mr->r_trans == rs->rs_transport) in rds_rdma_drop_keys()
139 rb_erase(&mr->r_rb_node, &rs->rs_rdma_keys); in rds_rdma_drop_keys()
141 spin_unlock_irqrestore(&rs->rs_rdma_lock, flags); in rds_rdma_drop_keys()
[all …]
Dcong.c266 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-6.6.21/fs/jffs2/
Dcompr_rubin.c88 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-6.6.21/fs/xfs/scrub/
Dreap.c143 static inline bool xreap_dirty(const struct xreap_state *rs) in xreap_dirty() argument
145 if (rs->force_roll) in xreap_dirty()
147 if (rs->deferred) in xreap_dirty()
149 if (rs->invalidated) in xreap_dirty()
151 if (rs->total_deferred) in xreap_dirty()
164 static inline bool xreap_want_roll(const struct xreap_state *rs) in xreap_want_roll() argument
166 if (rs->force_roll) in xreap_want_roll()
168 if (rs->deferred > XREP_MAX_ITRUNCATE_EFIS) in xreap_want_roll()
170 if (rs->invalidated > XREAP_MAX_BINVAL) in xreap_want_roll()
175 static inline void xreap_reset(struct xreap_state *rs) in xreap_reset() argument
[all …]
/linux-6.6.21/net/ipv4/
Dtcp_rate.c81 struct rate_sample *rs) in tcp_rate_skb_delivered() argument
91 if (!rs->prior_delivered || in tcp_rate_skb_delivered()
93 scb->end_seq, rs->last_end_seq)) { in tcp_rate_skb_delivered()
94 rs->prior_delivered_ce = scb->tx.delivered_ce; in tcp_rate_skb_delivered()
95 rs->prior_delivered = scb->tx.delivered; in tcp_rate_skb_delivered()
96 rs->prior_mstamp = scb->tx.delivered_mstamp; in tcp_rate_skb_delivered()
97 rs->is_app_limited = scb->tx.is_app_limited; in tcp_rate_skb_delivered()
98 rs->is_retrans = scb->sacked & TCPCB_RETRANS; in tcp_rate_skb_delivered()
99 rs->last_end_seq = scb->end_seq; in tcp_rate_skb_delivered()
104 rs->interval_us = tcp_stamp_us_delta(tp->first_tx_mstamp, in tcp_rate_skb_delivered()
[all …]
/linux-6.6.21/fs/isofs/
Drock.c54 struct inode *inode, struct rock_state *rs) in setup_rock_ridge() argument
56 rs->len = sizeof(struct iso_directory_record) + de->name_len[0]; in setup_rock_ridge()
57 if (rs->len & 1) in setup_rock_ridge()
58 (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()
61 if (rs->len < 0) in setup_rock_ridge()
62 rs->len = 0; in setup_rock_ridge()
65 rs->len -= ISOFS_SB(inode->i_sb)->s_rock_offset; in setup_rock_ridge()
66 rs->chr += ISOFS_SB(inode->i_sb)->s_rock_offset; in setup_rock_ridge()
[all …]
/linux-6.6.21/lib/crypto/
Ddes.c65 static const u8 rs[256] = { variable
634 pe[15 * 2 + 0] = DES_PC2(a, b, c, d); d = rs[d]; in des_ekey()
635 pe[14 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey()
636 pe[13 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey()
637 pe[12 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey()
638 pe[11 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey()
639 pe[10 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey()
640 pe[ 9 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey()
641 pe[ 8 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; in des_ekey()
642 pe[ 7 * 2 + 0] = DES_PC2(c, d, a, b); b = rs[b]; a = rs[a]; in des_ekey()
[all …]
/linux-6.6.21/lib/
Dratelimit.c27 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()
47 if (!raw_spin_trylock_irqsave(&rs->lock, flags)) in ___ratelimit()
50 if (!rs->begin) in ___ratelimit()
51 rs->begin = jiffies; in ___ratelimit()
53 if (time_is_before_jiffies(rs->begin + interval)) { in ___ratelimit()
54 if (rs->missed) { in ___ratelimit()
55 if (!(rs->flags & RATELIMIT_MSG_ON_RELEASE)) { in ___ratelimit()
58 func, rs->missed); in ___ratelimit()
[all …]
/linux-6.6.21/arch/mips/include/asm/
Duasm.h201 void UASM_i_LA_mostly(u32 **buf, unsigned int rs, long addr);
202 void UASM_i_LA(u32 **buf, unsigned int rs, long addr);
212 # define UASM_i_ADDIU(buf, rs, rt, val) uasm_i_daddiu(buf, rs, rt, val) argument
213 # define UASM_i_ADDU(buf, rs, rt, rd) uasm_i_daddu(buf, rs, rt, rd) argument
214 # define UASM_i_LL(buf, rs, rt, off) uasm_i_lld(buf, rs, rt, off) argument
215 # 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
219 # define UASM_i_ROTR(buf, rs, rt, sh) uasm_i_drotr(buf, rs, rt, sh) argument
220 # define UASM_i_SC(buf, rs, rt, off) uasm_i_scd(buf, rs, rt, off) argument
221 # define UASM_i_SLL(buf, rs, rt, sh) uasm_i_dsll(buf, rs, rt, sh) argument
[all …]
/linux-6.6.21/fs/reiserfs/
Dobjectid.c11 #define objectid_map(s,rs) (old_format_only (s) ? \ argument
12 (__le32 *)((struct reiserfs_super_block_v1 *)(rs) + 1) :\
13 (__le32 *)((rs) + 1))
52 struct reiserfs_super_block *rs = SB_DISK_SUPER_BLOCK(s); in reiserfs_get_unused_objectid() local
53 __le32 *map = objectid_map(s, rs); in reiserfs_get_unused_objectid()
86 if (sb_oid_cursize(rs) > 2 && map[1] == map[2]) { in reiserfs_get_unused_objectid()
88 (sb_oid_cursize(rs) - 3) * sizeof(__u32)); in reiserfs_get_unused_objectid()
89 set_sb_oid_cursize(rs, sb_oid_cursize(rs) - 2); in reiserfs_get_unused_objectid()
101 struct reiserfs_super_block *rs = SB_DISK_SUPER_BLOCK(s); in reiserfs_release_objectid() local
102 __le32 *map = objectid_map(s, rs); in reiserfs_release_objectid()
[all …]
/linux-6.6.21/include/linux/
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()
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_exit(struct ratelimit_state *rs) in ratelimit_state_exit() argument
27 if (!(rs->flags & RATELIMIT_MSG_ON_RELEASE)) in ratelimit_state_exit()
30 if (rs->missed) { in ratelimit_state_exit()
[all …]
/linux-6.6.21/arch/mips/kernel/
Dmips-r2-to-r6-emul.c405 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 …]
/linux-6.6.21/drivers/platform/chrome/wilco_ec/
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.6.21/drivers/net/wireless/ath/ath5k/
Ddesc.c603 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 …]

12345678910>>...12