Home
last modified time | relevance | path

Searched refs:r2 (Results 1 – 25 of 75) sorted by relevance

123

/drivers/scsi/arm/
Dacornscsi-io.S30 subs r2, r2, #16
46 acornscsi_in8: adds r2, r2, #8
55 sub r2, r2, #8
57 acornscsi_in4: adds r2, r2, #4
64 sub r2, r2, #4
66 acornscsi_in2: adds r2, r2, #2
82 subs r2, r2, #16
106 acornscsi_out8: adds r2, r2, #8
120 sub r2, r2, #8
121 acornscsi_out4: adds r2, r2, #4
[all …]
/drivers/gpu/drm/nouveau/nvkm/engine/gr/fuc/
Dhub.fuc80 mov $r2 NV_PGRAPH_FECS_ACCESS_FIFO
81 nv_iowr(NV_PGRAPH_FECS_ACCESS, 0, $r2)
87 clear b32 $r2
88 nv_iowr(NV_PGRAPH_FECS_INTR_ROUTE, 0, $r2)
91 mov $r2 0x2003 // { HUB_CHSW_PULSE, ZERO } -> intr 8
92 nv_iowr(NV_PGRAPH_FECS_IROUTE, 0, $r2)
98 mov $r2 0x2004 // { 0x04, ZERO } -> intr 9
99 nv_iowr(NV_PGRAPH_FECS_IROUTE, 1, $r2)
100 mov $r2 0x200b // { HUB_FIRMWARE_MTHD, ZERO } -> intr 10
101 nv_iowr(NV_PGRAPH_FECS_IROUTE, 2, $r2)
[all …]
Dgpc.fuc134 mov $r2 NV_PGRAPH_GPCX_GPCCS_ACCESS_FIFO
135 nv_iowr(NV_PGRAPH_GPCX_GPCCS_ACCESS, 0, $r2)
143 mov $r2 NV_PGRAPH_GPCX_GPCCS_INTR_EN_SET_FIFO
144 nv_iowr(NV_PGRAPH_GPCX_GPCCS_INTR_EN_SET, 0, $r2)
150 nv_iord($r2, NV_PGRAPH_GPCX_GPCCS_UNITS, 0)
152 and $r2 0x1f
153 shl b32 $r3 $r2
155 st b32 D[$r0 + #tpc_count] $r2
159 nv_iord($r2, NV_PGRAPH_GPCX_GPCCS_MYINDEX, 0)
160 st b32 D[$r0 + #gpc_id] $r2
[all …]
/drivers/ata/
Dpata_hpt3x3.c40 u32 r1, r2; in hpt3x3_set_piomode() local
44 pci_read_config_dword(pdev, 0x48, &r2); in hpt3x3_set_piomode()
48 r2 &= ~(0x11 << dn); /* Clear MWDMA and UDMA bits */ in hpt3x3_set_piomode()
51 pci_write_config_dword(pdev, 0x48, r2); in hpt3x3_set_piomode()
70 u32 r1, r2; in hpt3x3_set_dmamode() local
75 pci_read_config_dword(pdev, 0x48, &r2); in hpt3x3_set_dmamode()
79 r2 &= ~(0x11 << dn); /* Clear MWDMA and UDMA bits */ in hpt3x3_set_dmamode()
82 r2 |= (0x01 << dn); /* Ultra mode */ in hpt3x3_set_dmamode()
84 r2 |= (0x10 << dn); /* MWDMA */ in hpt3x3_set_dmamode()
87 pci_write_config_dword(pdev, 0x48, r2); in hpt3x3_set_dmamode()
/drivers/gpu/drm/nouveau/nvkm/engine/ce/fuc/
Dcom.fuc144 movw $r2 0xfff3
145 sethi $r2 0
146 iowr I[$r1 + 0x300] $r2
149 or $r2 0xc
150 iowr I[$r1] $r2
155 mov $r2 3
156 iowr I[$r1] $r2
168 and $r2 $r1 0x00000008
172 and $r2 $r1 0x00000004
244 mov $r2 0x1400
[all …]
/drivers/gpu/drm/nouveau/nvkm/engine/sec/fuc/
Dg98.fuc0s112 mov $r2 0x400
113 iowr I[$r2 + 0x300] $r1
117 iowr I[$r2] $r1
121 mov $r2 0x1200
122 iowr I[$r2] $r1
138 and $r2 $r1 0x8
139 cmpu b32 $r2 0
143 mov $r2 0x7700
144 mov $xtargets $r2
147 mov $r2 0
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/
Dhost.fuc68 nv_iord($r2, NV_PPWR_FIFO_PUT(0))
69 cmp b32 $r1 $r2
108 nv_iord($r2, NV_PPWR_RFIFO_PUT)
110 cmp b32 $r1 $r2
113 and $r3 $r2 #rfifo_qmaskp
123 add b32 $r2 0x1
124 and $r2 #rfifo_qmaskf
125 nv_iowr(NV_PPWR_RFIFO_PUT, $r2)
128 mov $r2 NV_PPWR_INTR_TRIGGER_USER0
129 nv_iowr(NV_PPWR_INTR_TRIGGER, $r2)
Darith.fuc54 push $r2 // B_hi
59 shr b32 $r2 $r13 16
77 mulu $r3 $r14 $r2 // tmp0 = A_lo * B_hi
86 mulu $r3 $r1 $r2 // tmp0 = A_hi * B_hi
91 pop $r2
Di2c_.fuc80 // $r2 - sda line
95 nv_iowr(NV_PPWR_OUTPUT_SET, $r2)
98 nv_iowr(NV_PPWR_OUTPUT_CLR, $r2)
113 and $r3 $r2
203 // $r2 - sda line
218 // $r2 - sda line
318 ld b32 $r2 D[$r3]
/drivers/md/persistent-data/
Ddm-space-map-metadata.c263 static int combine_errors(int r1, int r2) in combine_errors() argument
265 return r1 ? r1 : r2; in combine_errors()
394 int r, r2; in sm_metadata_set_count() local
405 r2 = out(smm); in sm_metadata_set_count()
407 return combine_errors(r, r2); in sm_metadata_set_count()
412 int r, r2 = 0; in sm_metadata_inc_block() local
421 r2 = out(smm); in sm_metadata_inc_block()
424 return combine_errors(r, r2); in sm_metadata_inc_block()
429 int r, r2 = 0; in sm_metadata_dec_block() local
438 r2 = out(smm); in sm_metadata_dec_block()
[all …]
/drivers/gpu/drm/i915/
Dintel_dpll_mgr.c507 unsigned p, n2, r2; member
585 unsigned r2, unsigned n2, unsigned p, in hsw_wrpll_update_rnp() argument
594 best->r2 = r2; in hsw_wrpll_update_rnp()
612 a = freq2k * budget * p * r2; in hsw_wrpll_update_rnp()
613 b = freq2k * budget * best->p * best->r2; in hsw_wrpll_update_rnp()
614 diff = abs_diff(freq2k * p * r2, LC_FREQ_2K * n2); in hsw_wrpll_update_rnp()
615 diff_best = abs_diff(freq2k * best->p * best->r2, in hsw_wrpll_update_rnp()
622 if (best->p * best->r2 * diff < p * r2 * diff_best) { in hsw_wrpll_update_rnp()
625 best->r2 = r2; in hsw_wrpll_update_rnp()
631 best->r2 = r2; in hsw_wrpll_update_rnp()
[all …]
/drivers/media/platform/soc_camera/
Dsoc_scale_crop.c27 static bool is_smaller(const struct v4l2_rect *r1, const struct v4l2_rect *r2) in is_smaller() argument
29 return r1->width < r2->width || r1->height < r2->height; in is_smaller()
33 static bool is_inside(const struct v4l2_rect *r1, const struct v4l2_rect *r2) in is_inside() argument
35 return r1->left > r2->left || r1->top > r2->top || in is_inside()
36 r1->left + r1->width < r2->left + r2->width || in is_inside()
37 r1->top + r1->height < r2->top + r2->height; in is_inside()
/drivers/regulator/
Dltc3589.c91 unsigned int r2; member
292 desc->r2 = vdiv[1]; in ltc3589_parse_regulators_dt()
438 static inline unsigned int ltc3589_scale(unsigned int uV, u32 r1, u32 r2) in ltc3589_scale() argument
444 do_div(tmp, r2); in ltc3589_scale()
452 if (!rdesc->r1 || !rdesc->r2) in ltc3589_apply_fb_voltage_divider()
455 desc->min_uV = ltc3589_scale(desc->min_uV, rdesc->r1, rdesc->r2); in ltc3589_apply_fb_voltage_divider()
456 desc->uV_step = ltc3589_scale(desc->uV_step, rdesc->r1, rdesc->r2); in ltc3589_apply_fb_voltage_divider()
457 desc->fixed_uV = ltc3589_scale(desc->fixed_uV, rdesc->r1, rdesc->r2); in ltc3589_apply_fb_voltage_divider()
/drivers/block/drbd/
Ddrbd_debugfs.c592 struct drbd_request *r1, *r2; in connection_oldest_requests_show() local
601 r2 = connection->req_ack_pending; in connection_oldest_requests_show()
602 if (r2 && r2 != r1) { in connection_oldest_requests_show()
603 r1 = r2; in connection_oldest_requests_show()
606 r2 = connection->req_not_net_done; in connection_oldest_requests_show()
607 if (r2 && r2 != r1) in connection_oldest_requests_show()
608 seq_print_minor_vnr_req(m, r2, now); in connection_oldest_requests_show()
723 struct drbd_request *r1, *r2; in device_oldest_requests_show() local
735 r2 = list_first_entry_or_null(&device->pending_completion[i], in device_oldest_requests_show()
739 if (r2 && r2 != r1) in device_oldest_requests_show()
[all …]
/drivers/firmware/
Dqcom_scm-32.c137 register u32 r2 asm("r2") = cmd_addr; in smc()
149 : "r" (r0), "r" (r1), "r" (r2) in smc()
253 register u32 r2 asm("r2") = arg1; in qcom_scm_call_atomic1()
265 : "r" (r0), "r" (r1), "r" (r2) in qcom_scm_call_atomic1()
286 register u32 r2 asm("r2") = arg1; in qcom_scm_call_atomic2()
300 : "r" (r0), "r" (r1), "r" (r2), "r" (r3) in qcom_scm_call_atomic2()
/drivers/net/dsa/
Dqca8k.c86 qca8k_split_addr(u32 regaddr, u16 *r1, u16 *r2, u16 *page) in qca8k_split_addr() argument
92 *r2 = regaddr & 0x7; in qca8k_split_addr()
152 u16 r1, r2, page; in qca8k_read() local
155 qca8k_split_addr(reg, &r1, &r2, &page); in qca8k_read()
160 val = qca8k_mii_read32(priv->bus, 0x10 | r2, r1); in qca8k_read()
170 u16 r1, r2, page; in qca8k_write() local
172 qca8k_split_addr(reg, &r1, &r2, &page); in qca8k_write()
177 qca8k_mii_write32(priv->bus, 0x10 | r2, r1, val); in qca8k_write()
185 u16 r1, r2, page; in qca8k_rmw() local
188 qca8k_split_addr(reg, &r1, &r2, &page); in qca8k_rmw()
[all …]
/drivers/media/tuners/
Dmc44s803.c221 u32 r1, r2, n1, n2, lo1, lo2, freq, val; in mc44s803_set_params() local
227 r2 = MC44S803_OSC / 100000; in mc44s803_set_params()
235 lo2 = ((60 * n2) + (r2 / 2)) / r2; in mc44s803_set_params()
242 MC44S803_REG_SM(r2-1, MC44S803_R2) | in mc44s803_set_params()
/drivers/gpu/drm/
Ddrm_rect.c42 bool drm_rect_intersect(struct drm_rect *r1, const struct drm_rect *r2) in drm_rect_intersect() argument
44 r1->x1 = max(r1->x1, r2->x1); in drm_rect_intersect()
45 r1->y1 = max(r1->y1, r2->y1); in drm_rect_intersect()
46 r1->x2 = min(r1->x2, r2->x2); in drm_rect_intersect()
47 r1->y2 = min(r1->y2, r2->y2); in drm_rect_intersect()
/drivers/infiniband/hw/cxgb4/
Dt4fw_ri_api.h138 __be32 r2; member
147 __be16 r2; member
534 __be64 r2; member
577 __be64 r2; member
592 __u8 r2[3]; member
678 __be32 r2; member
690 __be32 r2; member
/drivers/watchdog/
Dts72xx_wdt.c393 struct resource *r1, *r2; in ts72xx_wdt_probe() local
405 r2 = platform_get_resource(pdev, IORESOURCE_MEM, 1); in ts72xx_wdt_probe()
406 wdt->feed_reg = devm_ioremap_resource(&pdev->dev, r2); in ts72xx_wdt_probe()
/drivers/scsi/aacraid/
Dsa.c159 u32 *ret, u32 *r1, u32 *r2, u32 *r3, u32 *r4) in sa_sync_cmd() argument
217 if (r2) in sa_sync_cmd()
218 *r2 = sa_readl(dev, Mailbox2); in sa_sync_cmd()
/drivers/block/paride/
Depia.c65 a = r1(); b = r2(); w2(4); in epia_read_regr()
116 pi->saved_r2 = r2(); in epia_connect()
158 a = r1(); b = r2(); in epia_read_block()
/drivers/isdn/gigaset/
Dusb-gigaset.c181 int r, r2; in set_value() local
199 r2 = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), 0x19, 0x41, in set_value()
201 if (r2 < 0) in set_value()
202 dev_err(&udev->dev, "error %d on request 0x19\n", -r2); in set_value()
204 return r < 0 ? r : (r2 < 0 ? r2 : 0); in set_value()
/drivers/staging/lustre/lustre/ptlrpc/
Dsec_config.c267 struct sptlrpc_rule *r2) in rule_match_dir() argument
269 return (r1->sr_from == r2->sr_from && r1->sr_to == r2->sr_to); in rule_match_dir()
273 struct sptlrpc_rule *r2) in rule_match_net() argument
275 return (r1->sr_netid == r2->sr_netid); in rule_match_net()
/drivers/ipack/devices/
Dscc2698.h61 u8 da, r2; /* reserved */ member
83 u8 de, r2; /* reserved */ member

123