Home
last modified time | relevance | path

Searched refs:r2 (Results 1 – 25 of 72) 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/core/engine/graph/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.fuc89 mov $r2 NV_PGRAPH_GPCX_GPCCS_ACCESS_FIFO
90 nv_iowr(NV_PGRAPH_GPCX_GPCCS_ACCESS, 0, $r2)
98 mov $r2 NV_PGRAPH_GPCX_GPCCS_INTR_EN_SET_FIFO
99 nv_iowr(NV_PGRAPH_GPCX_GPCCS_INTR_EN_SET, 0, $r2)
105 nv_iord($r2, NV_PGRAPH_GPCX_GPCCS_UNITS, 0)
107 and $r2 0x1f
108 shl b32 $r3 $r2
110 st b32 D[$r0 + #tpc_count] $r2
112 nv_iord($r2, NV_PGRAPH_GPCX_GPCCS_MYINDEX, 0)
113 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/core/engine/copy/fuc/
Dnva3.fuc151 movw $r2 0xfff3
152 sethi $r2 0
153 iowr I[$r1 + 0x300] $r2
156 or $r2 0xc
157 iowr I[$r1] $r2
162 mov $r2 3
163 iowr I[$r1] $r2
175 and $r2 $r1 0x00000008
179 and $r2 $r1 0x00000004
251 mov $r2 0x1400
[all …]
/drivers/gpu/drm/i915/
Dintel_ddi.c446 unsigned p, n2, r2; member
524 unsigned r2, unsigned n2, unsigned p, in wrpll_update_rnp() argument
533 best->r2 = r2; in wrpll_update_rnp()
551 a = freq2k * budget * p * r2; in wrpll_update_rnp()
552 b = freq2k * budget * best->p * best->r2; in wrpll_update_rnp()
553 diff = abs_diff(freq2k * p * r2, LC_FREQ_2K * n2); in wrpll_update_rnp()
554 diff_best = abs_diff(freq2k * best->p * best->r2, in wrpll_update_rnp()
561 if (best->p * best->r2 * diff < p * r2 * diff_best) { in wrpll_update_rnp()
564 best->r2 = r2; in wrpll_update_rnp()
570 best->r2 = r2; in wrpll_update_rnp()
[all …]
/drivers/gpu/drm/nouveau/core/engine/crypt/fuc/
Dnv98.fuc112 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/core/subdev/pwr/fuc/
Dhost.fuc68 nv_iord($r2, NV_PPWR_FIFO_PUT(0))
69 cmp b32 $r1 $r2
109 nv_iord($r2, NV_PPWR_RFIFO_PUT)
111 cmp b32 $r1 $r2
114 and $r3 $r2 #rfifo_qmaskp
124 add b32 $r2 0x1
125 and $r2 #rfifo_qmaskf
126 nv_iowr(NV_PPWR_RFIFO_PUT, $r2)
129 mov $r2 NV_PPWR_INTR_TRIGGER_USER0
130 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/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/md/persistent-data/
Ddm-space-map-metadata.c253 static int combine_errors(int r1, int r2) in combine_errors() argument
255 return r1 ? r1 : r2; in combine_errors()
384 int r, r2; in sm_metadata_set_count() local
395 r2 = out(smm); in sm_metadata_set_count()
397 return combine_errors(r, r2); in sm_metadata_set_count()
402 int r, r2 = 0; in sm_metadata_inc_block() local
411 r2 = out(smm); in sm_metadata_inc_block()
414 return combine_errors(r, r2); in sm_metadata_inc_block()
419 int r, r2 = 0; in sm_metadata_dec_block() local
428 r2 = out(smm); in sm_metadata_dec_block()
[all …]
Ddm-btree-spine.c140 int r2 = unlock_block(s->info, s->nodes[i]); in exit_ro_spine() local
141 if (r2 < 0) in exit_ro_spine()
142 r = r2; in exit_ro_spine()
197 int r2 = unlock_block(s->info, s->nodes[i]); in exit_shadow_spine() local
198 if (r2 < 0) in exit_shadow_spine()
199 r = r2; in exit_shadow_spine()
/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/media/platform/vivid/
Dvivid-vid-common.c334 bool rect_same_size(const struct v4l2_rect *r1, const struct v4l2_rect *r2) in rect_same_size() argument
336 return r1->width == r2->width && r1->height == r2->height; in rect_same_size()
371 bool rect_overlap(const struct v4l2_rect *r1, const struct v4l2_rect *r2) in rect_overlap() argument
378 if (r1->left >= r2->left + r2->width || in rect_overlap()
379 r2->left >= r1->left + r1->width) in rect_overlap()
386 if (r1->top >= r2->top + r2->height || in rect_overlap()
387 r2->top >= r1->top + r1->height) in rect_overlap()
Dvivid-vid-common.h40 bool rect_overlap(const struct v4l2_rect *r1, const struct v4l2_rect *r2);
45 bool rect_same_size(const struct v4l2_rect *r1, const struct v4l2_rect *r2);
/drivers/block/drbd/
Ddrbd_debugfs.c609 struct drbd_request *r1, *r2; in connection_oldest_requests_show() local
618 r2 = connection->req_ack_pending; in connection_oldest_requests_show()
619 if (r2 && r2 != r1) { in connection_oldest_requests_show()
620 r1 = r2; in connection_oldest_requests_show()
623 r2 = connection->req_not_net_done; in connection_oldest_requests_show()
624 if (r2 && r2 != r1) in connection_oldest_requests_show()
625 seq_print_minor_vnr_req(m, r2, now); in connection_oldest_requests_show()
740 struct drbd_request *r1, *r2; in device_oldest_requests_show() local
752 r2 = list_first_entry_or_null(&device->pending_completion[i], in device_oldest_requests_show()
756 if (r2 && r2 != r1) in device_oldest_requests_show()
[all …]
/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/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/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/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
/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/ipack/devices/
Dscc2698.h61 u8 da, r2; /* reserved */ member
83 u8 de, r2; /* reserved */ member

123