Home
last modified time | relevance | path

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

12345678910>>...35

/openbmc/linux/drivers/crypto/cavium/nitrox/
H A Dnitrox_reqmgr.c61 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 …]
/openbmc/linux/drivers/soc/ti/
H A Dsmartreflex.c344 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 …]
/openbmc/linux/arch/mips/alchemy/devboards/
H A Dplatform.c81 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 …]
/openbmc/linux/arch/parisc/include/asm/
H A 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
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 …]
/openbmc/linux/net/tipc/
H A Dname_table.c91 #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 …]
/openbmc/linux/drivers/rtc/
H A Drtc-isl1208.c306 return sr; in isl1208_rtc_proc()
315 (sr & ISL1208_REG_SR_ARST) ? " ARST" : "", sr); in isl1208_rtc_proc()
339 int sr; in isl1208_i2c_read_time() local
352 return sr; in isl1208_i2c_read_time()
388 return sr; in isl1208_i2c_read_alarm()
396 return sr; in isl1208_i2c_read_alarm()
480 int sr; in isl1208_i2c_set_time() local
561 int sr; in timestamp0_store() local
585 int sr; in timestamp0_show() local
614 if (sr) in timestamp0_show()
[all …]
/openbmc/linux/arch/ia64/kernel/
H A Dunwind.c812 if (!(sr->in_body || sr->first_region)) in desc_prologue()
817 if (sr->when_target < sr->region_start + sr->region_len) { in desc_prologue()
886 sr->region_start + sr->region_len - 1, 0); in desc_br_mem()
901 sr->region_start + sr->region_len - 1, 0); in desc_frgr_mem()
910 sr->region_start + sr->region_len - 1, 0); in desc_frgr_mem()
925 sr->region_start + sr->region_len - 1, 0); in desc_fr_mem()
1028 sr->epilogue_start = sr->region_start + sr->region_len - 1 - t; in desc_epilogue()
1074 if (sr->when_target <= sr->region_start + min_t(int, t, sr->region_len - 1)) in desc_is_active()
1545 memset(&sr, 0, sizeof(sr)); in build_script()
1605 dp = unw_decode(dp, sr.in_body, &sr); in build_script()
[all …]
/openbmc/linux/arch/arm/mach-omap2/
H A 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()
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 …]
/openbmc/u-boot/arch/m68k/lib/
H A Dinterrupts.c29 unsigned short sr; in get_sr() local
31 asm volatile ("move.w %%sr,%0":"=r" (sr):); in get_sr()
33 return sr; in get_sr()
36 static __inline__ void set_sr (unsigned short sr) in set_sr() argument
38 asm volatile ("move.w %0,%%sr"::"r" (sr)); in set_sr()
69 unsigned short sr; in enable_interrupts() local
71 sr = get_sr (); in enable_interrupts()
72 set_sr (sr & ~0x0700); in enable_interrupts()
77 unsigned short sr; in disable_interrupts() local
79 sr = get_sr (); in disable_interrupts()
[all …]
/openbmc/ipmitool/lib/
H A Dipmi_sensor.c167 if (sr == NULL) { in ipmi_sensor_print_fc_discrete()
183 sr->s_a_str, sr->s_a_units, "ok"); in ipmi_sensor_print_fc_discrete()
187 sr->s_data2, sr->s_data3); in ipmi_sensor_print_fc_discrete()
213 sr->s_data2, in ipmi_sensor_print_fc_discrete()
256 if (sr == NULL) { in ipmi_sensor_print_fc_threshold()
283 sr->s_a_val, sr->s_a_units, thresh_status); in ipmi_sensor_print_fc_threshold()
286 sr->s_reading, sr->s_a_units, thresh_status); in ipmi_sensor_print_fc_threshold()
323 if (sr->full) { in ipmi_sensor_print_fc_threshold()
365 sr->full ? sr->full->threshold.hysteresis.positive : in ipmi_sensor_print_fc_threshold()
370 sr->full ? sr->full->threshold.hysteresis.negative : in ipmi_sensor_print_fc_threshold()
[all …]
H A Dipmi_sdr.c1389 printf("%s,%s,", sr->s_a_str, sr->s_a_units); in print_csv_discrete()
1423 memset(&sr, 0, sizeof(sr)); in ipmi_sdr_read_sensor_value()
1432 memcpy(sr.s_id, sr.full->id_string, idlen); in ipmi_sdr_read_sensor_value()
1439 memcpy(sr.s_id, sr.compact->id_string, idlen); in ipmi_sdr_read_sensor_value()
1509 sr.s_a_val = sdr_convert_sensor_reading(sr.full, sr.s_reading); in ipmi_sdr_read_sensor_value()
1516 snprintf(sr.s_a_str, sizeof(sr.s_a_str), "%.*f", in ipmi_sdr_read_sensor_value()
1517 (sr.s_a_val == (int) sr.s_a_val) ? 0 : in ipmi_sdr_read_sensor_value()
1705 printf("%s %s", sr->s_a_str, sr->s_a_units); in ipmi_sdr_print_sensor_fc()
1744 printf("%s %s\n", sr->s_a_str, sr->s_a_units); in ipmi_sdr_print_sensor_fc()
1794 sr->full ? sr->full->oem : sr->compact->oem); in ipmi_sdr_print_sensor_fc()
[all …]
/openbmc/linux/io_uring/
H A Dnet.c225 sr->len = 0; in io_compat_msg_copy_hdr()
235 sr->len = clen; in io_compat_msg_copy_hdr()
258 if (copy_from_user(msg, sr->umsg, sizeof(*sr->umsg))) in io_msg_copy_hdr()
397 sr->done_io = 0; in io_sendmsg_prep()
479 if (sr->addr) { in io_send()
485 ret = move_addr_to_kernel(sr->addr, sr->addr_len, &__address); in io_send()
501 ret = import_ubuf(ITER_SOURCE, sr->buf, sr->len, &msg.msg_iter); in io_send()
655 sr->done_io = 0; in io_recvmsg_prep()
664 sr->done_io = 0; in io_recv_prep_retry()
961 sr->buf = buf; in io_recv()
[all …]
/openbmc/qemu/target/hppa/
H A Dgdbstub.c73 val = env->sr[4] >> 32; in hppa_cpu_gdb_read_register()
76 val = env->sr[0] >> 32; in hppa_cpu_gdb_read_register()
79 val = env->sr[1] >> 32; in hppa_cpu_gdb_read_register()
82 val = env->sr[2] >> 32; in hppa_cpu_gdb_read_register()
85 val = env->sr[3] >> 32; in hppa_cpu_gdb_read_register()
88 val = env->sr[5] >> 32; in hppa_cpu_gdb_read_register()
91 val = env->sr[6] >> 32; in hppa_cpu_gdb_read_register()
94 val = env->sr[7] >> 32; in hppa_cpu_gdb_read_register()
199 env->sr[4] = (uint64_t)val << 32; in hppa_cpu_gdb_write_register()
202 env->sr[0] = (uint64_t)val << 32; in hppa_cpu_gdb_write_register()
[all …]
/openbmc/linux/drivers/macintosh/
H A Dwindfarm_core.c283 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 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()
/openbmc/qemu/tests/tcg/xtensa/
H A Dtest_sr.S3 test_suite sr
17 .macro sr_op sym, op_sym, op_byte, sr argument
19 \op_sym a4, \sr
21 .byte LOW__SR, \sr, \op_byte
25 .macro test_sr_op sym, mask, op, op_byte, sr argument
29 sr_op \sym, \op, \op_byte, \sr
33 sr_op \sym, \op, \op_byte, \sr
45 .macro test_sr_mask sr, sym, mask
46 test \sr
53 .macro test_sr sr, conf
[all …]
/openbmc/qemu/target/openrisc/
H A Dinterrupt.c47 env->sr &= ~SR_DME; in openrisc_cpu_do_interrupt()
48 env->sr &= ~SR_IME; in openrisc_cpu_do_interrupt()
49 env->sr |= SR_SM; in openrisc_cpu_do_interrupt()
50 env->sr &= ~SR_IEE; in openrisc_cpu_do_interrupt()
51 env->sr &= ~SR_TEE; in openrisc_cpu_do_interrupt()
59 env->sr |= SR_DSX; in openrisc_cpu_do_interrupt()
62 env->sr &= ~SR_DSX; in openrisc_cpu_do_interrupt()
94 if (env->sr & SR_EPH) { in openrisc_cpu_do_interrupt()
110 if ((interrupt_request & CPU_INTERRUPT_HARD) && (env->sr & SR_IEE)) { in openrisc_cpu_exec_interrupt()
113 if ((interrupt_request & CPU_INTERRUPT_TIMER) && (env->sr & SR_TEE)) { in openrisc_cpu_exec_interrupt()
/openbmc/qemu/hw/i2c/
H A Dmpc_i2c.c83 uint8_t sr; member
105 return s->sr & CSR_MIF; in mpc_i2c_irq_pending()
121 i2c->sr = 0x81; in mpc_i2c_reset()
153 s->sr |= CSR_RXAK; in mpc_i2c_address_send()
156 s->sr &= ~CSR_RXAK; in mpc_i2c_address_send()
167 s->sr |= CSR_RXAK; in mpc_i2c_data_send()
170 s->sr &= ~CSR_RXAK; in mpc_i2c_data_send()
209 value = s->sr; in mpc_i2c_read()
255 s->sr |= CSR_MBB; in mpc_i2c_write()
258 s->sr &= ~CSR_MBB; in mpc_i2c_write()
[all …]
/openbmc/linux/arch/parisc/kernel/
H A 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 …]
/openbmc/qemu/hw/char/
H A Dmcf_uart.c25 uint8_t sr; member
72 if (s->sr & MCF_UART_TxRDY) in OBJECT_DECLARE_SIMPLE_TYPE()
89 return s->sr; in mcf_uart_read()
130 s->sr |= MCF_UART_TxEMP; in mcf_uart_do_tx()
133 s->sr |= MCF_UART_TxRDY; in mcf_uart_do_tx()
135 s->sr &= ~MCF_UART_TxRDY; in mcf_uart_do_tx()
155 s->sr |= MCF_UART_TxEMP; in mcf_do_command()
156 s->sr &= ~MCF_UART_TxRDY; in mcf_do_command()
240 s->sr = MCF_UART_TxEMP; in mcf_uart_reset()
255 s->sr |= MCF_UART_RxRDY; in mcf_uart_push_byte()
[all …]
/openbmc/linux/arch/xtensa/variants/csp/include/variant/
H A 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)
/openbmc/linux/arch/xtensa/variants/de212/include/variant/
H A 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)
/openbmc/u-boot/arch/xtensa/include/asm/arch-de212/
H A Dtie.h69 XCHAL_SA_REG(s,1,0,0,1, acclo, 4, 4, 4,0x0210, sr,16 , 32,0,0,0) \
70 XCHAL_SA_REG(s,1,0,0,1, acchi, 4, 4, 4,0x0211, sr,17 , 8,0,0,0) \
71 XCHAL_SA_REG(s,0,0,0,1, scompare1, 4, 4, 4,0x020C, sr,12 , 32,0,0,0) \
72 XCHAL_SA_REG(s,0,0,0,1, m0, 4, 4, 4,0x0220, sr,32 , 32,0,0,0) \
73 XCHAL_SA_REG(s,0,0,0,1, m1, 4, 4, 4,0x0221, sr,33 , 32,0,0,0) \
74 XCHAL_SA_REG(s,0,0,0,1, m2, 4, 4, 4,0x0222, sr,34 , 32,0,0,0) \
75 XCHAL_SA_REG(s,0,0,0,1, m3, 4, 4, 4,0x0223, sr,35 , 32,0,0,0)
/openbmc/linux/Documentation/devicetree/bindings/phy/
H A 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>;
/openbmc/linux/arch/xtensa/variants/dc233c/include/variant/
H A 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)

12345678910>>...35