/linux/drivers/s390/char/ |
H A D | raw3270.c | 99 static void __raw3270_disconnect(struct raw3270 *rp); 115 static inline int raw3270_state_ready(struct raw3270 *rp) in raw3270_state_ready() argument 117 return rp->state == RAW3270_STATE_READY; in raw3270_state_ready() 120 void raw3270_buffer_address(struct raw3270 *rp, char *cp, int x, int y) in raw3270_buffer_address() argument 125 x = max_t(int, 0, rp->view->cols + x); in raw3270_buffer_address() 127 y = max_t(int, 0, rp->view->rows + y); in raw3270_buffer_address() 128 addr = (y * rp->view->cols) + x; in raw3270_buffer_address() 129 if (test_bit(RAW3270_FLAGS_14BITADDR, &rp->flags)) { in raw3270_buffer_address() 248 static int __raw3270_start(struct raw3270 *rp, struct raw3270_view *view, in __raw3270_start() argument 253 if (list_empty(&rp->req_queue) && in __raw3270_start() [all …]
|
/linux/fs/nfsd/ |
H A D | nfscache.c | 91 struct nfsd_cacherep *rp; in nfsd_cacherep_alloc() local 93 rp = kmem_cache_alloc(drc_slab, GFP_KERNEL); in nfsd_cacherep_alloc() 94 if (rp) { in nfsd_cacherep_alloc() 95 rp->c_state = RC_UNUSED; in nfsd_cacherep_alloc() 96 rp->c_type = RC_NOCACHE; in nfsd_cacherep_alloc() 97 RB_CLEAR_NODE(&rp->c_node); in nfsd_cacherep_alloc() 98 INIT_LIST_HEAD(&rp->c_lru); in nfsd_cacherep_alloc() 100 memset(&rp->c_key, 0, sizeof(rp->c_key)); in nfsd_cacherep_alloc() 101 rp->c_key.k_xid = rqstp->rq_xid; in nfsd_cacherep_alloc() 102 rp->c_key.k_proc = rqstp->rq_proc; in nfsd_cacherep_alloc() [all …]
|
/linux/drivers/usb/mon/ |
H A D | mon_text.c | 106 mon_text_read_wait(struct mon_reader_text *rp, struct file *file); 107 static void mon_text_read_head_t(struct mon_reader_text *rp, 109 static void mon_text_read_head_u(struct mon_reader_text *rp, 111 static void mon_text_read_statset(struct mon_reader_text *rp, 113 static void mon_text_read_intstat(struct mon_reader_text *rp, 115 static void mon_text_read_isostat(struct mon_reader_text *rp, 117 static void mon_text_read_isodesc(struct mon_reader_text *rp, 119 static void mon_text_read_data(struct mon_reader_text *rp, 193 static void mon_text_event(struct mon_reader_text *rp, struct urb *urb, in mon_text_event() argument 204 if (rp->nevents >= EVENT_MAX || in mon_text_event() [all …]
|
/linux/arch/arm/include/debug/ |
H A D | brcmstb.S | 37 #define checkuart(rp, rv, family_id, family) \ argument 39 ldr rp, =family_id ; \ 41 cmp rp, rv ; \ 43 ldreq rp, =UARTA_##family ; \ 47 .macro addruart, rp, rv, tmp 48 adr \rp, 99f @ actual addr of 99f 49 ldr \rv, [\rp] @ linked addr is stored there 50 sub \rv, \rv, \rp @ offset between the two 51 ldr \rp, [\rp, #4] @ linked brcmstb_uart_config 52 sub \tmp, \rp, \rv @ actual brcmstb_uart_config [all …]
|
H A D | tegra.S | 45 #define checkuart(rp, rv, lhu, bit, uart) \ argument 47 ldr rp, =TEGRA_CLK_RST_DEVICES_##lhu ; \ 49 ldr rp, [rp, #0] ; \ 51 tst rp, #(1 << bit) ; \ 55 ldr rp, =TEGRA_CLK_OUT_ENB_##lhu ; \ 57 ldr rp, [rp, #0] ; \ 59 tst rp, #(1 << bit) ; \ 63 ldr rp, =TEGRA_UART##uart##_BASE ; \ 67 .macro addruart, rp, rv, tmp 68 adr \rp, 99f @ actual addr of 99f [all …]
|
H A D | sa1100.S | 17 .macro addruart, rp, rv, tmp 18 mrc p15, 0, \rp, c1, c0 19 tst \rp, #1 @ MMU enabled? 20 moveq \rp, #0x80000000 @ physical base address 21 movne \rp, #0xf8000000 @ virtual address 28 add \rp, \rp, #0x00050000 29 ldr \rv, [\rp, #UTCR3] 33 addeq \rp, \rp, #(0x00010000 - 0x00050000) 34 ldreq \rv, [\rp, #UTCR3] 38 addeq \rp, \rp, #(0x00030000 - 0x00010000) [all …]
|
H A D | omap2plus.S | 27 .macro addruart, rp, rv, tmp 30 10: adr \rp, 99f @ get effective addr of 99f 31 ldr \rv, [\rp] @ get absolute addr of 99f 32 sub \rv, \rv, \rp @ offset between the two 33 ldr \rp, [\rp, #4] @ abs addr of omap_uart_phys 34 sub \tmp, \rp, \rv @ make it effective 35 ldr \rp, [\tmp, #0] @ omap_uart_phys 37 cmp \rp, #0 @ is port configured? 43 ldr \rp, =ZOOM_UART_BASE 44 str \rp, [\tmp, #0] @ omap_uart_phys [all …]
|
H A D | vexpress.S | 22 .macro addruart,rp,rv,tmp 30 mrc p15, 0, \rp, c0, c0, 0 33 cmp \rp, \rv 36 moveq \rp, #DEBUG_LL_UART_OFFSET 37 orreq \rv, \rp, #DEBUG_LL_VIRT_BASE 38 orreq \rp, \rp, #DEBUG_LL_PHYS_BASE 41 movne \rp, #DEBUG_LL_UART_OFFSET_RS1 42 orrne \rv, \rp, #DEBUG_LL_VIRT_BASE 43 orrne \rp, \rp, #DEBUG_LL_PHYS_BASE_RS1
|
/linux/drivers/powercap/ |
H A D | intel_rapl_common.c | 134 if (rd->rp->priv->type == RAPL_IF_TPMI) { in get_pl_lock_prim() 151 if (rd->rp->priv->limits[rd->id] & BIT(POWER_LIMIT2)) in get_pl_lock_prim() 162 if (prim == PL_CLAMP && rd->rp->priv->type != RAPL_IF_TPMI) in get_pl_prim() 176 if (prim == PL_CLAMP && rd->rp->priv->type != RAPL_IF_TPMI) in get_pl_prim() 219 static struct rapl_defaults *get_defaults(struct rapl_package *rp) in get_defaults() argument 221 return rp->priv->defaults; in get_defaults() 252 static void rapl_init_domains(struct rapl_package *rp); 267 static void package_power_limit_irq_save(struct rapl_package *rp); 313 struct rapl_package *rp = rd->rp; in release_zone() local 320 rp->domains = NULL; in release_zone() [all …]
|
H A D | intel_rapl_msr.c | 74 struct rapl_package *rp; in rapl_cpu_online() local 76 rp = rapl_find_package_domain_cpuslocked(cpu, rapl_msr_priv, true); in rapl_cpu_online() 77 if (!rp) { in rapl_cpu_online() 78 rp = rapl_add_package_cpuslocked(cpu, rapl_msr_priv, true); in rapl_cpu_online() 79 if (IS_ERR(rp)) in rapl_cpu_online() 80 return PTR_ERR(rp); in rapl_cpu_online() 82 cpumask_set_cpu(cpu, &rp->cpumask); in rapl_cpu_online() 88 struct rapl_package *rp; in rapl_cpu_down_prep() local 91 rp = rapl_find_package_domain_cpuslocked(cpu, rapl_msr_priv, true); in rapl_cpu_down_prep() 92 if (!rp) in rapl_cpu_down_prep() [all …]
|
/linux/lib/crypto/mpi/ |
H A D | mpi-pow.c | 30 mpi_ptr_t rp, ep, mp, bp; in mpi_powm() local 46 rp = res->d; in mpi_powm() 59 rp = res->d; in mpi_powm() 60 rp[0] = 1; in mpi_powm() 108 if (rp == ep || rp == mp || rp == bp) { in mpi_powm() 109 rp = mpi_alloc_limb_space(size); in mpi_powm() 110 if (!rp) in mpi_powm() 116 rp = res->d; in mpi_powm() 119 if (rp == bp) { in mpi_powm() 125 MPN_COPY(bp, rp, bsize); in mpi_powm() [all …]
|
H A D | mpi-div.c | 64 mpi_ptr_t qp, rp; in mpi_tdiv_qr() local 111 rp = rem->d; in mpi_tdiv_qr() 124 rp[0] = rlimb; in mpi_tdiv_qr() 144 qp = rp + dsize; in mpi_tdiv_qr() 170 nlimb = mpihelp_lshift(rp, np, nsize, normalization_steps); in mpi_tdiv_qr() 172 rp[nsize] = nlimb; in mpi_tdiv_qr() 180 if (dp == rp || (quot && (dp == qp))) { in mpi_tdiv_qr() 191 if (rp != np) in mpi_tdiv_qr() 192 MPN_COPY(rp, np, nsize); in mpi_tdiv_qr() 197 q_limb = mpihelp_divrem(qp, 0, rp, rsize, dp, dsize); in mpi_tdiv_qr() [all …]
|
/linux/net/bluetooth/ |
H A D | hci_event.c | 86 struct hci_ev_status *rp = data; in hci_cc_inquiry_cancel() local 88 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status); in hci_cc_inquiry_cancel() 97 if (rp->status == HCI_ERROR_COMMAND_DISALLOWED && !test_bit(HCI_INQUIRY, &hdev->flags)) { in hci_cc_inquiry_cancel() 99 rp->status = 0x00; in hci_cc_inquiry_cancel() 102 if (rp->status) in hci_cc_inquiry_cancel() 103 return rp->status; in hci_cc_inquiry_cancel() 118 return rp->status; in hci_cc_inquiry_cancel() 124 struct hci_ev_status *rp = data; in hci_cc_periodic_inq() local 126 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status); in hci_cc_periodic_inq() 128 if (rp->status) in hci_cc_periodic_inq() [all …]
|
H A D | hci_codec.c | 11 struct hci_rp_read_local_codec_caps *rp, in hci_codec_list_add() argument 29 if (rp) { in hci_codec_list_add() 30 entry->num_caps = rp->num_caps; in hci_codec_list_add() 56 struct hci_rp_read_local_codec_caps *rp; in hci_read_codec_capabilities() local 83 if (skb->len < sizeof(*rp)) in hci_read_codec_capabilities() 86 rp = (void *)skb->data; in hci_read_codec_capabilities() 88 if (rp->status) in hci_read_codec_capabilities() 91 if (!rp->num_caps) { in hci_read_codec_capabilities() 97 skb_pull(skb, sizeof(*rp)); in hci_read_codec_capabilities() 99 for (j = 0, len = 0; j < rp->num_caps; j++) { in hci_read_codec_capabilities() [all …]
|
H A D | mgmt.c | 360 struct mgmt_rp_read_version *rp = ver; in mgmt_fill_version_info() local 362 rp->version = MGMT_VERSION; in mgmt_fill_version_info() 363 rp->revision = cpu_to_le16(MGMT_REVISION); in mgmt_fill_version_info() 369 struct mgmt_rp_read_version rp; in read_version() local 373 mgmt_fill_version_info(&rp); in read_version() 376 &rp, sizeof(rp)); in read_version() 382 struct mgmt_rp_read_commands *rp; in read_commands() local 397 rp_size = sizeof(*rp) + ((num_commands + num_events) * sizeof(u16)); in read_commands() 399 rp = kmalloc(rp_size, GFP_KERNEL); in read_commands() 400 if (!rp) in read_commands() [all …]
|
/linux/tools/perf/arch/x86/util/ |
H A D | iostat.c | 77 const struct iio_root_port * const rp) in iio_root_port_show() argument 79 if (output && rp) in iio_root_port_show() 81 rp->die, rp->pmu_idx, rp->domain, rp->bus); in iio_root_port_show() 114 struct iio_root_port *rp; in iio_root_port_find_by_notation() local 118 rp = list->rps[idx]; in iio_root_port_find_by_notation() 119 if (rp && rp in iio_root_port_find_by_notation() 127 iio_root_ports_list_insert(struct iio_root_ports_list * list,struct iio_root_port * const rp) iio_root_ports_list_insert() argument 151 struct iio_root_port *rp; iio_mapping() local 252 struct iio_root_port *rp; iio_root_ports_list_filter() local 376 struct iio_root_port *rp = NULL; iostat_list() local 389 struct iio_root_port *rp = NULL; iostat_release() local 403 struct iio_root_port *rp = evlist->selected->priv; iostat_prefix() local [all...] |
/linux/drivers/pwm/ |
H A D | pwm-rcar.c | 50 static void rcar_pwm_write(struct rcar_pwm_chip *rp, u32 data, in rcar_pwm_write() argument 53 writel(data, rp->base + offset); in rcar_pwm_write() 56 static u32 rcar_pwm_read(struct rcar_pwm_chip *rp, unsigned int offset) in rcar_pwm_read() argument 58 return readl(rp->base + offset); in rcar_pwm_read() 61 static void rcar_pwm_update(struct rcar_pwm_chip *rp, u32 mask, u32 data, in rcar_pwm_update() argument 66 value = rcar_pwm_read(rp, offset); in rcar_pwm_update() 69 rcar_pwm_write(rp, value, offset); in rcar_pwm_update() 72 static int rcar_pwm_get_clock_division(struct rcar_pwm_chip *rp, int period_ns) in rcar_pwm_get_clock_division() argument 74 unsigned long clk_rate = clk_get_rate(rp->clk); in rcar_pwm_get_clock_division() 88 static void rcar_pwm_set_clock_control(struct rcar_pwm_chip *rp, in rcar_pwm_set_clock_control() argument [all …]
|
/linux/drivers/pci/controller/mobiveil/ |
H A D | pcie-mobiveil-host.c | 51 struct mobiveil_root_port *rp = &pcie->rp; in mobiveil_pcie_map_bus() local 73 return rp->config_axi_slave_base + where; in mobiveil_pcie_map_bus() 87 struct mobiveil_root_port *rp = &pcie->rp; in mobiveil_pcie_isr() local 88 struct mobiveil_msi *msi = &rp->msi; in mobiveil_pcie_isr() 115 ret = generic_handle_domain_irq(rp->intx_domain, in mobiveil_pcie_isr() 170 struct mobiveil_root_port *rp = &pcie->rp; in mobiveil_pcie_parse_dt() local 176 rp->config_axi_slave_base = devm_pci_remap_cfg_resource(dev, res); in mobiveil_pcie_parse_dt() 177 if (IS_ERR(rp->config_axi_slave_base)) in mobiveil_pcie_parse_dt() 178 return PTR_ERR(rp->config_axi_slave_base); in mobiveil_pcie_parse_dt() 179 rp->ob_io_res = res; in mobiveil_pcie_parse_dt() [all …]
|
/linux/drivers/media/pci/tw68/ |
H A D | tw68-risc.c | 33 static __le32 *tw68_risc_field(__le32 *rp, struct scatterlist *sglist, in tw68_risc_field() argument 42 *(rp++) = cpu_to_le32(RISC_JUMP); in tw68_risc_field() 43 *(rp++) = 0; in tw68_risc_field() 48 *(rp++) = cpu_to_le32(RISC_SYNCO); in tw68_risc_field() 50 *(rp++) = cpu_to_le32(RISC_SYNCE); in tw68_risc_field() 51 *(rp++) = 0; in tw68_risc_field() 63 *(rp++) = cpu_to_le32(RISC_LINESTART | in tw68_risc_field() 65 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset); in tw68_risc_field() 77 *(rp++) = cpu_to_le32(RISC_LINESTART | in tw68_risc_field() 80 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset); in tw68_risc_field() [all …]
|
/linux/drivers/gpu/drm/display/ |
H A D | drm_dsc_helper.c | 1520 const struct drm_dsc_rc_range_parameters *rp = cfg->rc_range_params; in drm_dsc_dump_config_rc_params() local 1533 rp[0].range_min_qp, rp[1].range_min_qp, rp[2].range_min_qp, rp[3].range_min_qp, in drm_dsc_dump_config_rc_params() 1534 rp[4].range_min_qp, rp[5].range_min_qp, rp[6].range_min_qp, rp[7].range_min_qp, in drm_dsc_dump_config_rc_params() 1535 rp[8].range_min_qp, rp[9].range_min_qp, rp[10].range_min_qp, rp[11].range_min_qp, in drm_dsc_dump_config_rc_params() 1536 rp[12].range_min_qp, rp[13].range_min_qp, rp[14].range_min_qp); in drm_dsc_dump_config_rc_params() 1539 rp[0].range_max_qp, rp[1].range_max_qp, rp[2].range_max_qp, rp[3].range_max_qp, in drm_dsc_dump_config_rc_params() 1540 rp[4].range_max_qp, rp[5].range_max_qp, rp[6].range_max_qp, rp[7].range_max_qp, in drm_dsc_dump_config_rc_params() 1541 rp[8].range_max_qp, rp[9].range_max_qp, rp[10].range_max_qp, rp[11].range_max_qp, in drm_dsc_dump_config_rc_params() 1542 rp[12].range_max_qp, rp[13].range_max_qp, rp[14].range_max_qp); in drm_dsc_dump_config_rc_params() 1545 … rp[0].range_bpg_offset, rp[1].range_bpg_offset, rp[2].range_bpg_offset, rp[3].range_bpg_offset, in drm_dsc_dump_config_rc_params() [all …]
|
/linux/arch/parisc/kernel/ |
H A D | hpmc.S | 153 ldil L%PA(os_hpmc_2), rp 155 ldo R%PA(os_hpmc_2)(rp), rp 168 ldil L%PA(os_hpmc_3),rp 170 ldo R%PA(os_hpmc_3)(rp),rp 198 ldil L%PA(os_hpmc_4),rp 200 ldo R%PA(os_hpmc_4)(rp),rp 220 ldil L%PA(os_hpmc_5),rp 222 ldo R%PA(os_hpmc_5)(rp),rp 268 ldil L%PA(os_hpmc_6),rp 270 ldo R%PA(os_hpmc_6)(rp),rp
|
/linux/drivers/misc/sgi-xp/ |
H A D | xpc_partition.c | 135 struct xpc_rsvd_page *rp; in xpc_setup_rsvd_page() local 148 rp = (struct xpc_rsvd_page *)__va(xp_socket_pa(rp_pa)); in xpc_setup_rsvd_page() 150 if (rp->SAL_version < 3) { in xpc_setup_rsvd_page() 152 rp->SAL_partid &= 0xff; in xpc_setup_rsvd_page() 154 BUG_ON(rp->SAL_partid != xp_partition_id); in xpc_setup_rsvd_page() 156 if (rp->SAL_partid < 0 || rp->SAL_partid >= xp_max_npartitions) { in xpc_setup_rsvd_page() 158 "supported range (< 0 || >= %d)\n", rp->SAL_partid, in xpc_setup_rsvd_page() 163 rp->version = XPC_RP_VERSION; in xpc_setup_rsvd_page() 164 rp->max_npartitions = xp_max_npartitions; in xpc_setup_rsvd_page() 167 if (rp->SAL_version == 1) { in xpc_setup_rsvd_page() [all …]
|
/linux/drivers/thermal/intel/int340x_thermal/ |
H A D | processor_thermal_rapl.c | 49 struct rapl_package *rp; in proc_thermal_rapl_add() local 78 rp = rapl_find_package_domain(0, &rapl_mmio_priv, false); in proc_thermal_rapl_add() 79 if (rp) { in proc_thermal_rapl_add() 84 rp = rapl_add_package(0, &rapl_mmio_priv, false); in proc_thermal_rapl_add() 85 if (IS_ERR(rp)) { in proc_thermal_rapl_add() 86 ret = PTR_ERR(rp); in proc_thermal_rapl_add() 101 struct rapl_package *rp; in proc_thermal_rapl_remove() local 106 rp = rapl_find_package_domain(0, &rapl_mmio_priv, false); in proc_thermal_rapl_remove() 107 if (rp) in proc_thermal_rapl_remove() 108 rapl_remove_package(rp); in proc_thermal_rapl_remove()
|
/linux/drivers/md/ |
H A D | raid1-10.c | 43 static inline int resync_alloc_pages(struct resync_pages *rp, in resync_alloc_pages() argument 49 rp->pages[i] = alloc_page(gfp_flags); in resync_alloc_pages() 50 if (!rp->pages[i]) in resync_alloc_pages() 58 put_page(rp->pages[i]); in resync_alloc_pages() 62 static inline void resync_free_pages(struct resync_pages *rp) in resync_free_pages() argument 67 put_page(rp->pages[i]); in resync_free_pages() 70 static inline void resync_get_all_pages(struct resync_pages *rp) in resync_get_all_pages() argument 75 get_page(rp->pages[i]); in resync_get_all_pages() 78 static inline struct page *resync_fetch_page(struct resync_pages *rp, in resync_fetch_page() argument 83 return rp->pages[idx]; in resync_fetch_page() [all …]
|
/linux/kernel/trace/ |
H A D | trace_kprobe.c | 60 struct kretprobe rp; /* Use rp.kp for kprobe use */ member 87 return tk->rp.handler != NULL; in trace_kprobe_is_return() 97 return tk->rp.kp.offset; in trace_kprobe_offset() 102 return kprobe_gone(&tk->rp.kp); in trace_kprobe_has_gone() 156 snprintf(buf, sizeof(buf), "0x%p", tk->rp.kp.addr); in trace_kprobe_match_command_head() 157 else if (tk->rp.kp.offset) in trace_kprobe_match_command_head() 159 trace_kprobe_symbol(tk), tk->rp.kp.offset); in trace_kprobe_match_command_head() 193 return !(list_empty(&tk->rp.kp.list) && in trace_kprobe_is_registered() 194 hlist_unhashed(&tk->rp.kp.hlist)); in trace_kprobe_is_registered() 207 addr += tk->rp.kp.offset; in trace_kprobe_address() [all …]
|