Home
last modified time | relevance | path

Searched refs:sr (Results 1 – 25 of 391) sorted by relevance

12345678910>>...16

/linux-6.6.21/drivers/crypto/cavium/nitrox/
Dnitrox_reqmgr.c55 static void softreq_unmap_sgbufs(struct nitrox_softreq *sr) in softreq_unmap_sgbufs() argument
57 struct nitrox_device *ndev = sr->ndev; in softreq_unmap_sgbufs()
61 dma_unmap_sg(dev, sr->in.sg, sg_nents(sr->in.sg), in softreq_unmap_sgbufs()
63 dma_unmap_single(dev, sr->in.sgcomp_dma, sr->in.sgcomp_len, in softreq_unmap_sgbufs()
65 kfree(sr->in.sgcomp); in softreq_unmap_sgbufs()
66 sr->in.sg = NULL; in softreq_unmap_sgbufs()
67 sr->in.sgmap_cnt = 0; in softreq_unmap_sgbufs()
69 dma_unmap_sg(dev, sr->out.sg, sg_nents(sr->out.sg), in softreq_unmap_sgbufs()
71 dma_unmap_single(dev, sr->out.sgcomp_dma, sr->out.sgcomp_len, in softreq_unmap_sgbufs()
73 kfree(sr->out.sgcomp); in softreq_unmap_sgbufs()
[all …]
/linux-6.6.21/drivers/soc/ti/
Dsmartreflex.c39 static inline void sr_write_reg(struct omap_sr *sr, unsigned offset, u32 value) in sr_write_reg() argument
41 __raw_writel(value, (sr->base + offset)); in sr_write_reg()
44 static inline void sr_modify_reg(struct omap_sr *sr, unsigned offset, u32 mask, in sr_modify_reg() argument
58 if (sr->ip_type == SR_TYPE_V1 && offset == ERRCONFIG_V1) in sr_modify_reg()
60 else if (sr->ip_type == SR_TYPE_V2 && offset == ERRCONFIG_V2) in sr_modify_reg()
63 reg_val = __raw_readl(sr->base + offset); in sr_modify_reg()
70 __raw_writel(reg_val, (sr->base + offset)); in sr_modify_reg()
73 static inline u32 sr_read_reg(struct omap_sr *sr, unsigned offset) in sr_read_reg() argument
75 return __raw_readl(sr->base + offset); in sr_read_reg()
127 static void sr_set_clk_length(struct omap_sr *sr) in sr_set_clk_length() argument
[all …]
/linux-6.6.21/arch/mips/alchemy/devboards/
Dplatform.c81 struct resource *sr; in db1x_register_pcmcia_socket() local
90 sr = kcalloc(cnt, sizeof(struct resource), GFP_KERNEL); in db1x_register_pcmcia_socket()
91 if (!sr) in db1x_register_pcmcia_socket()
100 sr[0].name = "pcmcia-attr"; in db1x_register_pcmcia_socket()
101 sr[0].flags = IORESOURCE_MEM; in db1x_register_pcmcia_socket()
102 sr[0].start = pcmcia_attr_start; in db1x_register_pcmcia_socket()
103 sr[0].end = pcmcia_attr_end; in db1x_register_pcmcia_socket()
105 sr[1].name = "pcmcia-mem"; in db1x_register_pcmcia_socket()
106 sr[1].flags = IORESOURCE_MEM; in db1x_register_pcmcia_socket()
107 sr[1].start = pcmcia_mem_start; in db1x_register_pcmcia_socket()
[all …]
/linux-6.6.21/net/tipc/
Dname_table.c91 #define service_range_upper(sr) ((sr)->upper) argument
99 #define service_range_overlap(sr, start, end) \ in RB_DECLARE_CALLBACKS_MAX() argument
100 ((sr)->lower <= (end) && (sr)->upper >= (start)) in RB_DECLARE_CALLBACKS_MAX()
110 #define service_range_foreach_match(sr, sc, start, end) \ in RB_DECLARE_CALLBACKS_MAX() argument
111 for (sr = service_range_match_first((sc)->ranges.rb_node, \ in RB_DECLARE_CALLBACKS_MAX()
114 sr; \
115 sr = service_range_match_next(&(sr)->tree_node, \
131 struct service_range *sr; local
152 sr = service_range_entry(n);
153 if (service_range_overlap(sr, start, end))
[all …]
/linux-6.6.21/arch/parisc/include/asm/
Duaccess.h23 #define LDD_USER(sr, val, ptr) __get_user_asm64(sr, val, ptr) argument
24 #define STD_USER(sr, x, ptr) __put_user_asm64(sr, x, ptr) argument
26 #define LDD_USER(sr, val, ptr) __get_user_asm(sr, val, "ldd", ptr) argument
27 #define STD_USER(sr, x, ptr) __put_user_asm(sr, "std", x, ptr) argument
30 #define __get_user_internal(sr, val, ptr) \ argument
35 case 1: __get_user_asm(sr, val, "ldb", ptr); break; \
36 case 2: __get_user_asm(sr, val, "ldh", ptr); break; \
37 case 4: __get_user_asm(sr, val, "ldw", ptr); break; \
38 case 8: LDD_USER(sr, val, ptr); break; \
50 #define __get_user_asm(sr, val, ldx, ptr) \ argument
[all …]
/linux-6.6.21/arch/ia64/kernel/
Dunwind.c616 push (struct unw_state_record *sr) in push() argument
625 memcpy(rs, &sr->curr, sizeof(*rs)); in push()
626 sr->curr.next = rs; in push()
630 pop (struct unw_state_record *sr) in pop() argument
632 struct unw_reg_state *rs = sr->curr.next; in pop()
638 memcpy(&sr->curr, rs, sizeof(*rs)); in pop()
746 finish_prologue (struct unw_state_record *sr) in finish_prologue() argument
757 reg = sr->curr.reg + unw.save_order[i]; in finish_prologue()
760 reg->val = sr->gr_save_loc++; in finish_prologue()
770 if (sr->imask) { in finish_prologue()
[all …]
/linux-6.6.21/drivers/rtc/
Drtc-isl1208.c188 static int isl1208_set_xtoscb(struct i2c_client *client, int sr, int xtosb_val) in isl1208_set_xtoscb() argument
191 if (!!(sr & ISL1208_REG_SR_XTOSCB) == xtosb_val) in isl1208_set_xtoscb()
195 sr |= ISL1208_REG_SR_XTOSCB; in isl1208_set_xtoscb()
197 sr &= ~ISL1208_REG_SR_XTOSCB; in isl1208_set_xtoscb()
199 return i2c_smbus_write_byte_data(client, ISL1208_REG_SR, sr); in isl1208_set_xtoscb()
301 int sr, dtr, atr, usr; in isl1208_rtc_proc() local
303 sr = isl1208_i2c_get_sr(client); in isl1208_rtc_proc()
304 if (sr < 0) { in isl1208_rtc_proc()
306 return sr; in isl1208_rtc_proc()
310 (sr & ISL1208_REG_SR_RTCF) ? " RTCF" : "", in isl1208_rtc_proc()
[all …]
/linux-6.6.21/arch/arm/mach-omap2/
Dsmartreflex-class3.c15 static int sr_class3_enable(struct omap_sr *sr) in sr_class3_enable() argument
17 unsigned long volt = voltdm_get_voltage(sr->voltdm); in sr_class3_enable()
21 __func__, sr->name); in sr_class3_enable()
25 omap_vp_enable(sr->voltdm); in sr_class3_enable()
26 return sr_enable(sr, volt); in sr_class3_enable()
29 static int sr_class3_disable(struct omap_sr *sr, int is_volt_reset) in sr_class3_disable() argument
31 sr_disable_errgen(sr); in sr_class3_disable()
32 omap_vp_disable(sr->voltdm); in sr_class3_disable()
33 sr_disable(sr); in sr_class3_disable()
35 voltdm_reset(sr->voltdm); in sr_class3_disable()
[all …]
/linux-6.6.21/io_uring/
Dnet.c210 struct io_sr_msg *sr = io_kiocb_to_cmd(req, struct io_sr_msg); in io_sendmsg_copy_hdr() local
215 ret = sendmsg_copy_msghdr(&iomsg->msg, sr->umsg, sr->msg_flags, in io_sendmsg_copy_hdr()
218 sr->msg_control = iomsg->msg.msg_control_user; in io_sendmsg_copy_hdr()
241 struct io_sr_msg *sr = io_kiocb_to_cmd(req, struct io_sr_msg); in io_setup_async_addr() local
244 if (!sr->addr || req_has_async_data(req)) in io_setup_async_addr()
274 struct io_sr_msg *sr = io_kiocb_to_cmd(req, struct io_sr_msg); in io_sendmsg_prep() local
279 sr->addr = u64_to_user_ptr(READ_ONCE(sqe->addr2)); in io_sendmsg_prep()
280 sr->addr_len = READ_ONCE(sqe->addr_len); in io_sendmsg_prep()
285 sr->umsg = u64_to_user_ptr(READ_ONCE(sqe->addr)); in io_sendmsg_prep()
286 sr->len = READ_ONCE(sqe->len); in io_sendmsg_prep()
[all …]
/linux-6.6.21/drivers/macintosh/
Dwindfarm_core.c279 struct wf_sensor *sr = container_of(kref, struct wf_sensor, ref); in wf_sensor_release() local
281 DBG("wf: Deleting sensor %s\n", sr->name); in wf_sensor_release()
283 if (sr->ops && sr->ops->release) in wf_sensor_release()
284 sr->ops->release(sr); in wf_sensor_release()
286 kfree(sr); in wf_sensor_release()
304 struct wf_sensor *sr; in wf_register_sensor() local
307 list_for_each_entry(sr, &wf_sensors, link) { in wf_register_sensor()
308 if (!strcmp(sr->name, new_sr->name)) { in wf_register_sensor()
310 " duplicate sensor %s\n", sr->name); in wf_register_sensor()
337 void wf_unregister_sensor(struct wf_sensor *sr) in wf_unregister_sensor() argument
[all …]
Dwindfarm_pm112.c274 struct wf_sensor *sr; in cpu_fans_tick() local
281 sr = sens_cpu_temp[cpu]; in cpu_fans_tick()
282 err = sr->ops->get_value(sr, &temp); in cpu_fans_tick()
296 sr = sens_cpu_power[cpu]; in cpu_fans_tick()
297 err = sr->ops->get_value(sr, &power); in cpu_fans_tick()
603 static void pm112_new_sensor(struct wf_sensor *sr) in pm112_new_sensor() argument
607 if (!strncmp(sr->name, "cpu-temp-", 9)) { in pm112_new_sensor()
608 i = sr->name[9] - '0'; in pm112_new_sensor()
609 if (sr->name[10] == 0 && i < NR_CORES && in pm112_new_sensor()
610 sens_cpu_temp[i] == NULL && wf_get_sensor(sr) == 0) in pm112_new_sensor()
[all …]
Dwindfarm.h100 int (*get_value)(struct wf_sensor *sr, s32 *val);
101 void (*release)(struct wf_sensor *sr);
115 extern int wf_register_sensor(struct wf_sensor *sr);
116 extern void wf_unregister_sensor(struct wf_sensor *sr);
117 extern int wf_get_sensor(struct wf_sensor *sr);
118 extern void wf_put_sensor(struct wf_sensor *sr);
120 static inline int wf_sensor_get(struct wf_sensor *sr, s32 *val) in wf_sensor_get() argument
122 return sr->ops->get_value(sr, val); in wf_sensor_get()
/linux-6.6.21/arch/parisc/kernel/
Dkgdb.c72 gr->sr0 = regs->sr[0]; in pt_regs_to_gdb_regs()
73 gr->sr1 = regs->sr[1]; in pt_regs_to_gdb_regs()
74 gr->sr2 = regs->sr[2]; in pt_regs_to_gdb_regs()
75 gr->sr3 = regs->sr[3]; in pt_regs_to_gdb_regs()
76 gr->sr4 = regs->sr[4]; in pt_regs_to_gdb_regs()
77 gr->sr5 = regs->sr[5]; in pt_regs_to_gdb_regs()
78 gr->sr6 = regs->sr[6]; in pt_regs_to_gdb_regs()
79 gr->sr7 = regs->sr[7]; in pt_regs_to_gdb_regs()
103 regs->sr[0] = gr->sr0; in gdb_regs_to_pt_regs()
104 regs->sr[1] = gr->sr1; in gdb_regs_to_pt_regs()
[all …]
/linux-6.6.21/arch/xtensa/variants/csp/include/variant/
Dtie.h114 XCHAL_SA_REG(s,1,0,0,1, acclo, 4, 4, 4,0x0210, sr,16 , 32,0,0,0) \
115 XCHAL_SA_REG(s,1,0,0,1, acchi, 4, 4, 4,0x0211, sr,17 , 8,0,0,0) \
116 XCHAL_SA_REG(s,0,0,0,1, br, 4, 4, 4,0x0204, sr,4 , 16,0,0,0) \
117 XCHAL_SA_REG(s,0,0,0,1, scompare1, 4, 4, 4,0x020C, sr,12 , 32,0,0,0) \
118 XCHAL_SA_REG(s,0,0,0,1, m0, 4, 4, 4,0x0220, sr,32 , 32,0,0,0) \
119 XCHAL_SA_REG(s,0,0,0,1, m1, 4, 4, 4,0x0221, sr,33 , 32,0,0,0) \
120 XCHAL_SA_REG(s,0,0,0,1, m2, 4, 4, 4,0x0222, sr,34 , 32,0,0,0) \
121 XCHAL_SA_REG(s,0,0,0,1, m3, 4, 4, 4,0x0223, sr,35 , 32,0,0,0)
/linux-6.6.21/arch/xtensa/variants/de212/include/variant/
Dtie.h90 XCHAL_SA_REG(s,1,0,0,1, acclo, 4, 4, 4,0x0210, sr,16 , 32,0,0,0) \
91 XCHAL_SA_REG(s,1,0,0,1, acchi, 4, 4, 4,0x0211, sr,17 , 8,0,0,0) \
92 XCHAL_SA_REG(s,0,0,0,1, scompare1, 4, 4, 4,0x020C, sr,12 , 32,0,0,0) \
93 XCHAL_SA_REG(s,0,0,0,1, m0, 4, 4, 4,0x0220, sr,32 , 32,0,0,0) \
94 XCHAL_SA_REG(s,0,0,0,1, m1, 4, 4, 4,0x0221, sr,33 , 32,0,0,0) \
95 XCHAL_SA_REG(s,0,0,0,1, m2, 4, 4, 4,0x0222, sr,34 , 32,0,0,0) \
96 XCHAL_SA_REG(s,0,0,0,1, m3, 4, 4, 4,0x0223, sr,35 , 32,0,0,0)
/linux-6.6.21/Documentation/devicetree/bindings/phy/
Dbrcm,sr-pcie-phy.txt4 - compatible: must be "brcm,sr-pcie-phy"
6 - brcm,sr-cdru: phandle to the CDRU syscon node
7 - brcm,sr-mhb: phandle to the MHB syscon node
17 compatible = "brcm,sr-mhb", "syscon";
22 compatible = "brcm,sr-cdru", "syscon";
27 compatible = "brcm,sr-pcie-phy";
29 brcm,sr-cdru = <&cdru>;
30 brcm,sr-mhb = <&mhb>;
Dbrcm,stingray-usb-phy.txt5 - "brcm,sr-usb-combo-phy" is combo PHY has two PHYs, one SS and one HS.
6 - "brcm,sr-usb-hs-phy" is a single HS PHY.
9 - Must be 1 for brcm,sr-usb-combo-phy as it expects one argument to indicate
11 - Must be 0 for brcm,sr-usb-hs-phy.
17 compatible = "brcm,sr-usb-combo-phy";
23 compatible = "brcm,sr-usb-combo-phy";
29 compatible = "brcm,sr-usb-hs-phy";
/linux-6.6.21/arch/xtensa/variants/dc232b/include/variant/
Dtie.h94 XCHAL_SA_REG(s,1,0,0,1, acclo, 4, 4, 4,0x0210, sr,16 , 32,0,0,0) \
95 XCHAL_SA_REG(s,1,0,0,1, acchi, 4, 4, 4,0x0211, sr,17 , 8,0,0,0) \
96 XCHAL_SA_REG(s,0,0,0,1, m0, 4, 4, 4,0x0220, sr,32 , 32,0,0,0) \
97 XCHAL_SA_REG(s,0,0,0,1, m1, 4, 4, 4,0x0221, sr,33 , 32,0,0,0) \
98 XCHAL_SA_REG(s,0,0,0,1, m2, 4, 4, 4,0x0222, sr,34 , 32,0,0,0) \
99 XCHAL_SA_REG(s,0,0,0,1, m3, 4, 4, 4,0x0223, sr,35 , 32,0,0,0) \
100 XCHAL_SA_REG(s,0,0,0,1, scompare1, 4, 4, 4,0x020C, sr,12 , 32,0,0,0) \
/linux-6.6.21/arch/xtensa/variants/dc233c/include/variant/
Dtie.h114 XCHAL_SA_REG(s,1,0,0,1, acclo, 4, 4, 4,0x0210, sr,16 , 32,0,0,0) \
115 XCHAL_SA_REG(s,1,0,0,1, acchi, 4, 4, 4,0x0211, sr,17 , 8,0,0,0) \
116 XCHAL_SA_REG(s,0,0,0,1, m0, 4, 4, 4,0x0220, sr,32 , 32,0,0,0) \
117 XCHAL_SA_REG(s,0,0,0,1, m1, 4, 4, 4,0x0221, sr,33 , 32,0,0,0) \
118 XCHAL_SA_REG(s,0,0,0,1, m2, 4, 4, 4,0x0222, sr,34 , 32,0,0,0) \
119 XCHAL_SA_REG(s,0,0,0,1, m3, 4, 4, 4,0x0223, sr,35 , 32,0,0,0) \
120 XCHAL_SA_REG(s,0,0,0,1, scompare1, 4, 4, 4,0x020C, sr,12 , 32,0,0,0)
/linux-6.6.21/arch/xtensa/variants/test_kc705_be/include/variant/
Dtie.h117 XCHAL_SA_REG(s,1,0,0,1, acclo, 4, 4, 4,0x0210, sr,16 , 32,0,0,0) \
118 XCHAL_SA_REG(s,1,0,0,1, acchi, 4, 4, 4,0x0211, sr,17 , 8,0,0,0) \
119 XCHAL_SA_REG(s,0,0,0,1, br, 4, 4, 4,0x0204, sr,4 , 16,0,0,0) \
120 XCHAL_SA_REG(s,0,0,0,1, scompare1, 4, 4, 4,0x020C, sr,12 , 32,0,0,0) \
121 XCHAL_SA_REG(s,0,0,0,1, m0, 4, 4, 4,0x0220, sr,32 , 32,0,0,0) \
122 XCHAL_SA_REG(s,0,0,0,1, m1, 4, 4, 4,0x0221, sr,33 , 32,0,0,0) \
123 XCHAL_SA_REG(s,0,0,0,1, m2, 4, 4, 4,0x0222, sr,34 , 32,0,0,0) \
124 XCHAL_SA_REG(s,0,0,0,1, m3, 4, 4, 4,0x0223, sr,35 , 32,0,0,0)
/linux-6.6.21/lib/reed_solomon/
Dreed_solomon.c73 int i, j, sr, root, iprim; in codec_init() local
107 sr = 1; in codec_init()
109 rs->index_of[sr] = i; in codec_init()
110 rs->alpha_to[i] = sr; in codec_init()
111 sr <<= 1; in codec_init()
112 if (sr & (1 << symsize)) in codec_init()
113 sr ^= gfpoly; in codec_init()
114 sr &= rs->nn; in codec_init()
117 sr = gffunc(0); in codec_init()
119 rs->index_of[sr] = i; in codec_init()
[all …]
/linux-6.6.21/include/linux/power/
Dsmartreflex.h240 int (*enable)(struct omap_sr *sr);
241 int (*disable)(struct omap_sr *sr, int is_volt_reset);
242 int (*configure)(struct omap_sr *sr);
243 int (*notify)(struct omap_sr *sr, u32 status);
306 int sr_enable(struct omap_sr *sr, unsigned long volt);
307 void sr_disable(struct omap_sr *sr);
308 int sr_configure_errgen(struct omap_sr *sr);
309 int sr_disable_errgen(struct omap_sr *sr);
310 int sr_configure_minmax(struct omap_sr *sr);
/linux-6.6.21/arch/xtensa/variants/test_kc705_hifi/include/variant/
Dtie.h117 XCHAL_SA_REG(s,1,0,0,1, acclo, 4, 4, 4,0x0210, sr,16 , 32,0,0,0) \
118 XCHAL_SA_REG(s,1,0,0,1, acchi, 4, 4, 4,0x0211, sr,17 , 8,0,0,0) \
119 XCHAL_SA_REG(s,0,0,0,1, m0, 4, 4, 4,0x0220, sr,32 , 32,0,0,0) \
120 XCHAL_SA_REG(s,0,0,0,1, m1, 4, 4, 4,0x0221, sr,33 , 32,0,0,0) \
121 XCHAL_SA_REG(s,0,0,0,1, m2, 4, 4, 4,0x0222, sr,34 , 32,0,0,0) \
122 XCHAL_SA_REG(s,0,0,0,1, m3, 4, 4, 4,0x0223, sr,35 , 32,0,0,0) \
123 XCHAL_SA_REG(s,0,0,0,1, br, 4, 4, 4,0x0204, sr,4 , 16,0,0,0) \
124 XCHAL_SA_REG(s,0,0,0,1, scompare1, 4, 4, 4,0x020C, sr,12 , 32,0,0,0)
/linux-6.6.21/drivers/mtd/spi-nor/
Datmel.c75 u8 sr; in atmel_nor_set_global_protection() local
85 sr = nor->bouncebuf[0]; in atmel_nor_set_global_protection()
88 if (sr & SR_SRWD) { in atmel_nor_set_global_protection()
89 sr &= ~SR_SRWD; in atmel_nor_set_global_protection()
90 ret = spi_nor_write_sr_and_check(nor, sr); in atmel_nor_set_global_protection()
98 sr |= ATMEL_SR_GLOBAL_PROTECT_MASK; in atmel_nor_set_global_protection()
106 sr |= SR_SRWD; in atmel_nor_set_global_protection()
108 sr &= ~ATMEL_SR_GLOBAL_PROTECT_MASK; in atmel_nor_set_global_protection()
111 nor->bouncebuf[0] = sr; in atmel_nor_set_global_protection()
/linux-6.6.21/drivers/i2c/busses/
Di2c-iop3xx.c111 u32 sr = __raw_readl(iop3xx_adap->ioaddr + SR_OFFSET); in iop3xx_i2c_irq_handler() local
113 if ((sr &= iop3xx_adap->SR_enabled)) { in iop3xx_i2c_irq_handler()
114 __raw_writel(sr, iop3xx_adap->ioaddr + SR_OFFSET); in iop3xx_i2c_irq_handler()
115 iop3xx_adap->SR_received |= sr; in iop3xx_i2c_irq_handler()
123 iop3xx_i2c_error(u32 sr) in iop3xx_i2c_error() argument
127 if ((sr & IOP3XX_ISR_BERRD)) { in iop3xx_i2c_error()
131 if ((sr & IOP3XX_ISR_ALD)) { in iop3xx_i2c_error()
142 u32 sr; in iop3xx_i2c_get_srstat() local
145 sr = iop3xx_adap->SR_received; in iop3xx_i2c_get_srstat()
149 return sr; in iop3xx_i2c_get_srstat()
[all …]

12345678910>>...16