/linux/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_reqmgr.c | 61 dma_unmap_sg(dev, sr->in.sg, sg_nents(sr->in.sg), in softreq_unmap_sgbufs() 69 dma_unmap_sg(dev, sr->out.sg, sg_nents(sr->out.sg), in softreq_unmap_sgbufs() 81 kfree(sr); in softreq_destroy() 175 ret = create_sg_component(sr, &sr->in, sr->in.sgmap_cnt); in dma_map_inbufs() 200 ret = create_sg_component(sr, &sr->out, sr->out.sgmap_cnt); in dma_map_outbufs() 393 sr = kzalloc(sizeof(*sr), req->gfp); in nitrox_process_se_request() 394 if (!sr) in nitrox_process_se_request() 452 sr->instr.ih.s.gsz = sr->in.sgmap_cnt; in nitrox_process_se_request() 453 sr->instr.ih.s.ssz = sr->out.sgmap_cnt; in nitrox_process_se_request() 455 sr->instr.ih.s.tlen = sr->instr.ih.s.fsz + sr->in.total_bytes; in nitrox_process_se_request() [all …]
|
/linux/drivers/soc/ti/ |
H A D | smartreflex.c | 344 if (!sr) { in sr_configure_errgen() 411 if (!sr) { in sr_disable_errgen() 466 if (!sr) { in sr_configure_minmax() 551 if (!sr) { in sr_enable() 593 sr->enabled = 1; in sr_enable() 607 if (!sr) { in sr_disable() 614 if (!sr->enabled) in sr_disable() 631 sr->ip_type); in sr_disable() 636 sr->enabled = 0; in sr_disable() 689 if (IS_ERR(sr)) { in omap_sr_enable() [all …]
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_reg_sr.c | 35 xa_destroy(&sr->xa); in reg_sr_fini() 37 memset(&sr->pool, 0, sizeof(sr->pool)); in reg_sr_fini() 42 xa_init(&sr->xa); in xe_reg_sr_init() 43 memset(&sr->pool, 0, sizeof(sr->pool)); in xe_reg_sr_init() 45 sr->name = name; in xe_reg_sr_init() 53 if (sr->pool.used == sr->pool.allocated) { in alloc_entry() 57 ALIGN(sr->pool.allocated + 1, sr->pool.grow_step), in alloc_entry() 63 sr->pool.allocated += sr->pool.grow_step; in alloc_entry() 66 return &sr->pool.arr[sr->pool.used++]; in alloc_entry() 89 sr->errors++; in reg_sr_inc_error() [all …]
|
/linux/arch/mips/alchemy/devboards/ |
H A D | platform.c | 81 struct resource *sr; in db1x_register_pcmcia_socket() local 91 if (!sr) in db1x_register_pcmcia_socket() 115 sr[3].name = "insert"; in db1x_register_pcmcia_socket() 117 sr[3].start = sr[3].end = cd_irq; in db1x_register_pcmcia_socket() 119 sr[4].name = "card"; in db1x_register_pcmcia_socket() 121 sr[4].start = sr[4].end = card_irq; in db1x_register_pcmcia_socket() 127 sr[i].start = sr[i].end = stschg_irq; in db1x_register_pcmcia_socket() 131 sr[i].name = "eject"; in db1x_register_pcmcia_socket() 133 sr[i].start = sr[i].end = eject_irq; in db1x_register_pcmcia_socket() 136 pd->resource = sr; in db1x_register_pcmcia_socket() [all …]
|
/linux/net/tipc/ |
H A D | name_table.c | 91 #define service_range_upper(sr) ((sr)->upper) argument 100 ((sr)->lower <= (end) && (sr)->upper >= (start)) in RB_DECLARE_CALLBACKS_MAX() 238 p->sr = ua->sr; in tipc_publ_create() 287 service_range_foreach_match(sr, sc, ua->sr.lower, ua->sr.upper) { in tipc_service_find_range() 289 if (sr->lower == ua->sr.lower && sr->upper == ua->sr.upper) in tipc_service_find_range() 317 sr = kzalloc(sizeof(*sr), GFP_ATOMIC); in tipc_service_create_range() 353 p->sr.type, p->sr.lower, p->sr.upper, in tipc_service_insert_publ() 372 p->sr.type, p->sr.lower, p->sr.upper); in tipc_service_insert_publ() 542 ua->sr.type, ua->sr.lower, ua->sr.upper, in tipc_nametbl_remove_publ() 689 service_range_foreach_match(sr, sc, ua->sr.lower, ua->sr.upper) { in tipc_nametbl_lookup_mcast_sockets() [all …]
|
/linux/arch/parisc/include/asm/ |
H A D | uaccess.h | 23 #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 38 case 8: LDD_USER(sr, val, ptr); break; \ 58 : "i"(sr), "r"(ptr)); \ 91 : "i"(sr), "r"(ptr)); \ 107 case 8: STD_USER(sr, x, ptr); break; \ 149 : "r"(x), "i"(sr), "r"(ptr)) [all …]
|
/linux/drivers/rtc/ |
H A D | rtc-isl1208.c | 307 return sr; in isl1208_rtc_proc() 316 (sr & ISL1208_REG_SR_ARST) ? " ARST" : "", sr); in isl1208_rtc_proc() 340 int sr; in isl1208_i2c_read_time() local 353 return sr; in isl1208_i2c_read_time() 389 return sr; in isl1208_i2c_read_alarm() 397 return sr; in isl1208_i2c_read_alarm() 481 int sr; in isl1208_i2c_set_time() local 562 int sr; in timestamp0_store() local 586 int sr; in timestamp0_show() local 615 if (sr) in timestamp0_show() [all …]
|
/linux/arch/arm/mach-omap2/ |
H A D | smartreflex-class3.c | 15 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() 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() 40 static int sr_class3_configure(struct omap_sr *sr) in sr_class3_configure() argument [all …]
|
/linux/io_uring/ |
H A D | net.c | 205 sr->done_io = 0; in io_mshot_prep_retry() 247 sr->len = clen; in io_compat_msg_copy_hdr() 277 if (!user_access_begin(sr->umsg, sizeof(*sr->umsg))) in io_msg_copy_hdr() 371 if (sr->addr) { in io_send_setup() 379 ret = import_ubuf(ITER_SOURCE, sr->buf, sr->len, in io_send_setup() 409 sr->done_io = 0; in io_sendmsg_prep() 628 ret = import_ubuf(ITER_SOURCE, sr->buf, sr->len, in io_send() 758 ret = import_ubuf(ITER_DEST, sr->buf, sr->len, in io_recvmsg_prep_setup() 1118 ret = import_ubuf(ITER_DEST, sr->buf, sr->len, in io_recv_buf_select() 1349 (u64)(uintptr_t)sr->buf, sr->len); in io_send_zc_import() [all …]
|
/linux/drivers/macintosh/ |
H A D | windfarm_core.c | 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 340 list_del(&sr->link); in wf_unregister_sensor() 345 wf_put_sensor(sr); in wf_unregister_sensor() 351 if (!try_module_get(sr->ops->owner)) in wf_get_sensor() 353 kref_get(&sr->ref); in wf_get_sensor() 360 struct module *mod = sr->ops->owner; in wf_put_sensor() 375 struct wf_sensor *sr; in wf_register_client() local [all …]
|
H A D | windfarm_pm112.c | 274 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() 608 i = sr->name[9] - '0'; in pm112_new_sensor() 611 sens_cpu_temp[i] = sr; in pm112_new_sensor() 614 i = sr->name[10] - '0'; in pm112_new_sensor() 620 hd_temp = sr; in pm112_new_sensor() 623 slots_power = sr; in pm112_new_sensor() [all …]
|
H A D | windfarm.h | 100 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/arch/parisc/kernel/ |
H A D | kgdb.c | 72 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/arch/xtensa/variants/csp/include/variant/ |
H A D | tie.h | 114 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/arch/xtensa/variants/de212/include/variant/ |
H A D | tie.h | 90 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/Documentation/devicetree/bindings/phy/ |
H A D | brcm,sr-pcie-phy.txt | 4 - 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>;
|
H A D | brcm,stingray-usb-phy.txt | 5 - "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/arch/xtensa/variants/dc232b/include/variant/ |
H A D | tie.h | 94 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/arch/xtensa/variants/dc233c/include/variant/ |
H A D | tie.h | 114 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/arch/xtensa/variants/test_kc705_be/include/variant/ |
H A D | tie.h | 117 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/lib/reed_solomon/ |
H A D | reed_solomon.c | 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() 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() 120 rs->alpha_to[i] = sr; in codec_init() 121 sr = gffunc(sr); in codec_init() [all …]
|
/linux/include/linux/power/ |
H A D | smartreflex.h | 240 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/arch/xtensa/variants/test_kc705_hifi/include/variant/ |
H A D | tie.h | 117 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/drivers/char/hw_random/ |
H A D | stm32-rng.c | 104 u32 sr = readl_relaxed(priv->base + RNG_SR); in stm32_rng_conceal_seed_error_cond_reset() local 108 if (sr & RNG_SR_SECS) { in stm32_rng_conceal_seed_error_cond_reset() 129 err = readl_relaxed_poll_timeout_atomic(priv->base + RNG_SR, sr, !(sr & RNG_SR_SECS), 10, in stm32_rng_conceal_seed_error_cond_reset() 189 u32 sr; in stm32_rng_read() local 199 sr = readl_relaxed(priv->base + RNG_SR); in stm32_rng_read() 204 if (!sr && wait) { in stm32_rng_read() 207 sr, sr, in stm32_rng_read() 213 } else if (!sr) { in stm32_rng_read() 218 if (sr != RNG_SR_DRDY) { in stm32_rng_read() 219 if (sr & RNG_SR_SEIS) { in stm32_rng_read() [all …]
|
/linux/drivers/i2c/busses/ |
H A D | i2c-iop3xx.c | 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() 164 unsigned sr = 0; in iop3xx_i2c_wait_event() local 176 *status = sr; in iop3xx_i2c_wait_event() 179 *status = sr; in iop3xx_i2c_wait_event() [all …]
|