Home
last modified time | relevance | path

Searched full:rs (Results 1 – 25 of 977) sorted by relevance

12345678910>>...40

/kernel/linux/linux-4.19/drivers/spi/
Dspi-rockchip.c213 static inline void spi_enable_chip(struct rockchip_spi *rs, int enable) in spi_enable_chip() argument
215 writel_relaxed((enable ? 1 : 0), rs->regs + ROCKCHIP_SPI_SSIENR); in spi_enable_chip()
218 static inline void spi_set_clk(struct rockchip_spi *rs, u16 div) in spi_set_clk() argument
220 writel_relaxed(div, rs->regs + ROCKCHIP_SPI_BAUDR); in spi_set_clk()
223 static inline void flush_fifo(struct rockchip_spi *rs) in flush_fifo() argument
225 while (readl_relaxed(rs->regs + ROCKCHIP_SPI_RXFLR)) in flush_fifo()
226 readl_relaxed(rs->regs + ROCKCHIP_SPI_RXDR); in flush_fifo()
229 static inline void wait_for_idle(struct rockchip_spi *rs) in wait_for_idle() argument
234 if (!(readl_relaxed(rs->regs + ROCKCHIP_SPI_SR) & SR_BUSY)) in wait_for_idle()
238 dev_warn(rs->dev, "spi controller is in busy state!\n"); in wait_for_idle()
[all …]
/kernel/linux/linux-5.10/drivers/md/
Ddm-raid.c59 * Bits for establishing rs->ctr_flags
88 * Flags for rs->ctr_flags field.
199 * Flags for rs->runtime_flags field
259 static void rs_config_backup(struct raid_set *rs, struct rs_layout *l) in rs_config_backup() argument
261 struct mddev *mddev = &rs->md; in rs_config_backup()
268 static void rs_config_restore(struct raid_set *rs, struct rs_layout *l) in rs_config_restore() argument
270 struct mddev *mddev = &rs->md; in rs_config_restore()
398 /* Return true, if raid set in @rs is raid0 */
399 static bool rs_is_raid0(struct raid_set *rs) in rs_is_raid0() argument
401 return !rs->md.level; in rs_is_raid0()
[all …]
/kernel/linux/linux-5.10/drivers/spi/
Dspi-rockchip.c193 static inline void spi_enable_chip(struct rockchip_spi *rs, bool enable) in spi_enable_chip() argument
195 writel_relaxed((enable ? 1U : 0U), rs->regs + ROCKCHIP_SPI_SSIENR); in spi_enable_chip()
198 static inline void wait_for_idle(struct rockchip_spi *rs) in wait_for_idle() argument
203 if (!(readl_relaxed(rs->regs + ROCKCHIP_SPI_SR) & SR_BUSY)) in wait_for_idle()
207 dev_warn(rs->dev, "spi controller is in busy state!\n"); in wait_for_idle()
210 static u32 get_fifo_len(struct rockchip_spi *rs) in get_fifo_len() argument
214 ver = readl_relaxed(rs->regs + ROCKCHIP_SPI_VERSION); in get_fifo_len()
228 struct rockchip_spi *rs = spi_controller_get_devdata(ctlr); in rockchip_spi_set_cs() local
232 if (cs_asserted == rs->cs_asserted[spi->chip_select]) in rockchip_spi_set_cs()
237 pm_runtime_get_sync(rs->dev); in rockchip_spi_set_cs()
[all …]
Dspi-mt7621.c67 static inline u32 mt7621_spi_read(struct mt7621_spi *rs, u32 reg) in mt7621_spi_read() argument
69 return ioread32(rs->base + reg); in mt7621_spi_read()
72 static inline void mt7621_spi_write(struct mt7621_spi *rs, u32 reg, u32 val) in mt7621_spi_write() argument
74 iowrite32(val, rs->base + reg); in mt7621_spi_write()
79 struct mt7621_spi *rs = spidev_to_mt7621_spi(spi); in mt7621_spi_set_cs() local
89 master = mt7621_spi_read(rs, MT7621_SPI_MASTER); in mt7621_spi_set_cs()
92 mt7621_spi_write(rs, MT7621_SPI_MASTER, master); in mt7621_spi_set_cs()
94 rs->pending_write = 0; in mt7621_spi_set_cs()
98 mt7621_spi_write(rs, MT7621_SPI_POLAR, polar); in mt7621_spi_set_cs()
103 struct mt7621_spi *rs = spidev_to_mt7621_spi(spi); in mt7621_spi_prepare() local
[all …]
/kernel/linux/linux-4.19/drivers/md/
Ddm-raid.c59 * Bits for establishing rs->ctr_flags
88 * Flags for rs->ctr_flags field.
197 * Flags for rs->runtime_flags field
254 static void rs_config_backup(struct raid_set *rs, struct rs_layout *l) in rs_config_backup() argument
256 struct mddev *mddev = &rs->md; in rs_config_backup()
263 static void rs_config_restore(struct raid_set *rs, struct rs_layout *l) in rs_config_restore() argument
265 struct mddev *mddev = &rs->md; in rs_config_restore()
393 /* Return true, if raid set in @rs is raid0 */
394 static bool rs_is_raid0(struct raid_set *rs) in rs_is_raid0() argument
396 return !rs->md.level; in rs_is_raid0()
[all …]
/kernel/linux/linux-5.10/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.c70 * 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 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()
[all …]
/kernel/linux/linux-5.10/lib/reed_solomon/
Dreed_solomon.c13 * encoding / decoding of RS codes.
16 * for the given rs parameters. The control struct is unique per instance.
52 /* This list holds all currently allocated rs codec structures */
62 * @fcr: first root of RS code generator polynomial, index form
64 * @nroots: RS code generator polynomial degree (number of roots)
74 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()
[all …]
/kernel/linux/linux-4.19/lib/reed_solomon/
Dreed_solomon.c13 * encoding / decoding of RS codes.
16 * for the given rs parameters. The control struct is unique per instance.
52 /* This list holds all currently allocated rs codec structures */
62 * @fcr: first root of RS code generator polynomial, index form
64 * @nroots: RS code generator polynomial degree (number of roots)
74 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()
[all …]
/kernel/linux/linux-4.19/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-4.19/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.c70 * 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 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()
[all …]
Drecv.c92 static void rds_recv_rcvbuf_delta(struct rds_sock *rs, struct sock *sk, in rds_recv_rcvbuf_delta() argument
101 rs->rs_rcv_bytes += delta; in rds_recv_rcvbuf_delta()
108 if (rs->rs_transport->t_type == RDS_TRANS_LOOP) in rds_recv_rcvbuf_delta()
111 now_congested = rs->rs_rcv_bytes > rds_sk_rcvbuf(rs); in rds_recv_rcvbuf_delta()
113 rdsdebug("rs %p (%pI6c:%u) recv bytes %d buf %d " in rds_recv_rcvbuf_delta()
115 rs, &rs->rs_bound_addr, in rds_recv_rcvbuf_delta()
116 ntohs(rs->rs_bound_port), rs->rs_rcv_bytes, in rds_recv_rcvbuf_delta()
117 rds_sk_rcvbuf(rs), now_congested, delta); in rds_recv_rcvbuf_delta()
120 if (!rs->rs_congested && now_congested) { in rds_recv_rcvbuf_delta()
121 rs->rs_congested = 1; in rds_recv_rcvbuf_delta()
[all …]
/kernel/linux/linux-4.19/drivers/staging/mt7621-spi/
Dspi-mt7621.c79 static inline u32 mt7621_spi_read(struct mt7621_spi *rs, u32 reg) in mt7621_spi_read() argument
81 return ioread32(rs->base + reg); in mt7621_spi_read()
84 static inline void mt7621_spi_write(struct mt7621_spi *rs, u32 reg, u32 val) in mt7621_spi_write() argument
86 iowrite32(val, rs->base + reg); in mt7621_spi_write()
89 static void mt7621_spi_reset(struct mt7621_spi *rs, int duplex) in mt7621_spi_reset() argument
91 u32 master = mt7621_spi_read(rs, MT7621_SPI_MASTER); in mt7621_spi_reset()
100 mt7621_spi_write(rs, MT7621_SPI_MASTER, master); in mt7621_spi_reset()
101 rs->pending_write = 0; in mt7621_spi_reset()
106 struct mt7621_spi *rs = spidev_to_mt7621_spi(spi); in mt7621_spi_set_cs() local
110 mt7621_spi_reset(rs, cs); in mt7621_spi_set_cs()
[all …]
/kernel/linux/linux-5.10/arch/mips/mm/
Duasm-mips.c51 [insn_addiu] = {M(addiu_op, 0, 0, 0, 0, 0), RS | RT | SIMM},
52 [insn_addu] = {M(spec_op, 0, 0, 0, 0, addu_op), RS | RT | RD},
53 [insn_and] = {M(spec_op, 0, 0, 0, 0, and_op), RS | RT | RD},
54 [insn_andi] = {M(andi_op, 0, 0, 0, 0, 0), RS | RT | UIMM},
55 [insn_bbit0] = {M(lwc2_op, 0, 0, 0, 0, 0), RS | RT | BIMM},
56 [insn_bbit1] = {M(swc2_op, 0, 0, 0, 0, 0), RS | RT | BIMM},
57 [insn_beq] = {M(beq_op, 0, 0, 0, 0, 0), RS | RT | BIMM},
58 [insn_beql] = {M(beql_op, 0, 0, 0, 0, 0), RS | RT | BIMM},
59 [insn_bgez] = {M(bcond_op, 0, bgez_op, 0, 0, 0), RS | BIMM},
60 [insn_bgezl] = {M(bcond_op, 0, bgezl_op, 0, 0, 0), RS | BIMM},
[all …]
/kernel/linux/linux-4.19/arch/mips/include/asm/
Duasm.h191 void UASM_i_LA_mostly(u32 **buf, unsigned int rs, long addr);
192 void UASM_i_LA(u32 **buf, unsigned int rs, long addr);
202 # define UASM_i_ADDIU(buf, rs, rt, val) uasm_i_daddiu(buf, rs, rt, val) argument
203 # define UASM_i_ADDU(buf, rs, rt, rd) uasm_i_daddu(buf, rs, rt, rd) argument
204 # define UASM_i_LL(buf, rs, rt, off) uasm_i_lld(buf, rs, rt, off) argument
205 # define UASM_i_LW(buf, rs, rt, off) uasm_i_ld(buf, rs, rt, off) argument
206 # define UASM_i_LWX(buf, rs, rt, rd) uasm_i_ldx(buf, rs, rt, rd) argument
209 # define UASM_i_ROTR(buf, rs, rt, sh) uasm_i_drotr(buf, rs, rt, sh) argument
210 # define UASM_i_SC(buf, rs, rt, off) uasm_i_scd(buf, rs, rt, off) argument
211 # define UASM_i_SLL(buf, rs, rt, sh) uasm_i_dsll(buf, rs, rt, sh) argument
[all …]
/kernel/linux/linux-5.10/arch/mips/include/asm/
Duasm.h200 void UASM_i_LA_mostly(u32 **buf, unsigned int rs, long addr);
201 void UASM_i_LA(u32 **buf, unsigned int rs, long addr);
211 # define UASM_i_ADDIU(buf, rs, rt, val) uasm_i_daddiu(buf, rs, rt, val) argument
212 # define UASM_i_ADDU(buf, rs, rt, rd) uasm_i_daddu(buf, rs, rt, rd) argument
213 # define UASM_i_LL(buf, rs, rt, off) uasm_i_lld(buf, rs, rt, off) argument
214 # define UASM_i_LW(buf, rs, rt, off) uasm_i_ld(buf, rs, rt, off) argument
215 # define UASM_i_LWX(buf, rs, rt, rd) uasm_i_ldx(buf, rs, rt, rd) argument
218 # define UASM_i_ROTR(buf, rs, rt, sh) uasm_i_drotr(buf, rs, rt, sh) argument
219 # define UASM_i_SC(buf, rs, rt, off) uasm_i_scd(buf, rs, rt, off) argument
220 # define UASM_i_SLL(buf, rs, rt, sh) uasm_i_dsll(buf, rs, rt, sh) argument
[all …]
/kernel/linux/linux-5.10/lib/
Dratelimit.c17 * @rs: ratelimit_state data
20 * This enforces a rate limit: not more than @rs->burst callbacks
21 * in every @rs->interval
27 int ___ratelimit(struct ratelimit_state *rs, const char *func) in ___ratelimit() argument
32 if (!rs->interval) in ___ratelimit()
41 if (!raw_spin_trylock_irqsave(&rs->lock, flags)) in ___ratelimit()
44 if (!rs->begin) in ___ratelimit()
45 rs->begin = jiffies; in ___ratelimit()
47 if (time_is_before_jiffies(rs->begin + rs->interval)) { in ___ratelimit()
48 if (rs->missed) { in ___ratelimit()
[all …]
/kernel/linux/linux-4.19/lib/
Dratelimit.c18 * @rs: ratelimit_state data
21 * This enforces a rate limit: not more than @rs->burst callbacks
22 * in every @rs->interval
28 int ___ratelimit(struct ratelimit_state *rs, const char *func) in ___ratelimit() argument
33 if (!rs->interval) in ___ratelimit()
42 if (!raw_spin_trylock_irqsave(&rs->lock, flags)) in ___ratelimit()
45 if (!rs->begin) in ___ratelimit()
46 rs->begin = jiffies; in ___ratelimit()
48 if (time_is_before_jiffies(rs->begin + rs->interval)) { in ___ratelimit()
49 if (rs->missed) { in ___ratelimit()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-4.19/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 …]
/kernel/linux/linux-4.19/arch/mips/mm/
Duasm-mips.c51 [insn_addiu] = {M(addiu_op, 0, 0, 0, 0, 0), RS | RT | SIMM},
52 [insn_addu] = {M(spec_op, 0, 0, 0, 0, addu_op), RS | RT | RD},
53 [insn_and] = {M(spec_op, 0, 0, 0, 0, and_op), RS | RT | RD},
54 [insn_andi] = {M(andi_op, 0, 0, 0, 0, 0), RS | RT | UIMM},
55 [insn_bbit0] = {M(lwc2_op, 0, 0, 0, 0, 0), RS | RT | BIMM},
56 [insn_bbit1] = {M(swc2_op, 0, 0, 0, 0, 0), RS | RT | BIMM},
57 [insn_beq] = {M(beq_op, 0, 0, 0, 0, 0), RS | RT | BIMM},
58 [insn_beql] = {M(beql_op, 0, 0, 0, 0, 0), RS | RT | BIMM},
59 [insn_bgez] = {M(bcond_op, 0, bgez_op, 0, 0, 0), RS | BIMM},
60 [insn_bgezl] = {M(bcond_op, 0, bgezl_op, 0, 0, 0), RS | BIMM},
[all …]
/kernel/linux/linux-4.19/include/linux/
Drslib.h7 * RS code lifted from reed solomon library written by Phil Karn
18 * struct rs_codec - rs codec data
32 * @list: List entry for the rs codec list
51 * struct rs_control - rs control structure per instance
60 /* General purpose RS codec, 8-bit data width, symbol width 1-15 bit */
62 int encode_rs8(struct rs_control *rs, uint8_t *data, int len, uint16_t *par,
66 int decode_rs8(struct rs_control *rs, uint8_t *data, uint16_t *par, int len,
71 /* General purpose RS codec, 16-bit data width, symbol width 1-15 bit */
73 int encode_rs16(struct rs_control *rs, uint16_t *data, int len, uint16_t *par,
77 int decode_rs16(struct rs_control *rs, uint16_t *data, uint16_t *par, int len,
[all …]
/kernel/linux/linux-5.10/include/linux/
Drslib.h7 * RS code lifted from reed solomon library written by Phil Karn
18 * struct rs_codec - rs codec data
32 * @list: List entry for the rs codec list
51 * struct rs_control - rs control structure per instance
60 /* General purpose RS codec, 8-bit data width, symbol width 1-15 bit */
62 int encode_rs8(struct rs_control *rs, uint8_t *data, int len, uint16_t *par,
66 int decode_rs8(struct rs_control *rs, uint8_t *data, uint16_t *par, int len,
71 /* General purpose RS codec, 16-bit data width, symbol width 1-15 bit */
73 int encode_rs16(struct rs_control *rs, uint16_t *data, int len, uint16_t *par,
77 int decode_rs16(struct rs_control *rs, uint16_t *data, uint16_t *par, int len,
[all …]

12345678910>>...40