Home
last modified time | relevance | path

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

12345678910>>...46

/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/drivers/md/
Ddm-raid.c60 * Bits for establishing rs->ctr_flags
89 * Flags for rs->ctr_flags field.
200 * Flags for rs->runtime_flags field
260 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()
399 /* Return true, if raid set in @rs is raid0 */
400 static bool rs_is_raid0(struct raid_set *rs) in rs_is_raid0() argument
402 return !rs->md.level; in rs_is_raid0()
[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-6.6/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/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-6.6/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-6.6/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-6.6/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-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-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-6.6/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 …]
/kernel/linux/linux-6.6/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-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-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 …]
/kernel/linux/linux-6.6/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-6.6/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
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()
[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
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()
[all …]
/kernel/linux/linux-6.6/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 …]

12345678910>>...46