Home
last modified time | relevance | path

Searched refs:cr (Results 1 – 25 of 50) sorted by relevance

12

/linux-4.19.296/drivers/i2c/busses/
Di2c-iop3xx.c70 u32 cr = IOP3XX_ICR_GCD | IOP3XX_ICR_SCLEN | IOP3XX_ICR_UE; in iop3xx_i2c_enable() local
90 cr |= IOP3XX_ICR_ALD_IE | IOP3XX_ICR_BERR_IE | in iop3xx_i2c_enable()
93 __raw_writel(cr, iop3xx_adap->ioaddr + CR_OFFSET); in iop3xx_i2c_enable()
99 unsigned long cr = __raw_readl(iop3xx_adap->ioaddr + CR_OFFSET); in iop3xx_i2c_transaction_cleanup() local
101 cr &= ~(IOP3XX_ICR_MSTART | IOP3XX_ICR_TBYTE | in iop3xx_i2c_transaction_cleanup()
104 __raw_writel(cr, iop3xx_adap->ioaddr + CR_OFFSET); in iop3xx_i2c_transaction_cleanup()
235 unsigned long cr = __raw_readl(iop3xx_adap->ioaddr + CR_OFFSET); in iop3xx_i2c_send_target_addr() local
248 cr &= ~(IOP3XX_ICR_MSTOP | IOP3XX_ICR_NACK); in iop3xx_i2c_send_target_addr()
249 cr |= IOP3XX_ICR_MSTART | IOP3XX_ICR_TBYTE; in iop3xx_i2c_send_target_addr()
251 __raw_writel(cr, iop3xx_adap->ioaddr + CR_OFFSET); in iop3xx_i2c_send_target_addr()
[all …]
/linux-4.19.296/drivers/misc/cxl/
Dsysfs.c512 int cr; member
523 struct afu_config_record *cr = to_cr(kobj); in vendor_show() local
525 return scnprintf(buf, PAGE_SIZE, "0x%.4x\n", cr->vendor); in vendor_show()
531 struct afu_config_record *cr = to_cr(kobj); in device_show() local
533 return scnprintf(buf, PAGE_SIZE, "0x%.4x\n", cr->device); in device_show()
539 struct afu_config_record *cr = to_cr(kobj); in class_show() local
541 return scnprintf(buf, PAGE_SIZE, "0x%.6x\n", cr->class); in class_show()
548 struct afu_config_record *cr = to_cr(kobj); in afu_read_config() local
554 rc = cxl_ops->afu_cr_read64(afu, cr->cr, off & ~0x7, &val); in afu_read_config()
580 struct afu_config_record *cr = to_cr(kobj); in release_afu_config_record() local
[all …]
Dguest.c418 unsigned long cr; in _guest_afu_cr_readXX() local
428 cr = get_zeroed_page(GFP_KERNEL); in _guest_afu_cr_readXX()
429 if (!cr) in _guest_afu_cr_readXX()
433 virt_to_phys((void *)cr), sz); in _guest_afu_cr_readXX()
439 c = *((char *) cr); in _guest_afu_cr_readXX()
443 *val = in_le16((u16 *)cr); in _guest_afu_cr_readXX()
446 *val = in_le32((unsigned *)cr); in _guest_afu_cr_readXX()
449 *val = in_le64((u64 *)cr); in _guest_afu_cr_readXX()
455 free_page(cr); in _guest_afu_cr_readXX()
501 static int guest_afu_cr_write32(struct cxl_afu *afu, int cr, u64 off, u32 in) in guest_afu_cr_write32() argument
[all …]
Dnative.c1477 static int native_afu_cr_read64(struct cxl_afu *afu, int cr, u64 off, u64 *out) in native_afu_cr_read64() argument
1484 (cr * afu->crs_len) + off); in native_afu_cr_read64()
1488 static int native_afu_cr_read32(struct cxl_afu *afu, int cr, u64 off, u32 *out) in native_afu_cr_read32() argument
1495 (cr * afu->crs_len) + off); in native_afu_cr_read32()
1499 static int native_afu_cr_read16(struct cxl_afu *afu, int cr, u64 off, u16 *out) in native_afu_cr_read16() argument
1505 rc = native_afu_cr_read32(afu, cr, aligned_off, &val); in native_afu_cr_read16()
1511 static int native_afu_cr_read8(struct cxl_afu *afu, int cr, u64 off, u8 *out) in native_afu_cr_read8() argument
1517 rc = native_afu_cr_read32(afu, cr, aligned_off, &val); in native_afu_cr_read8()
1523 static int native_afu_cr_write32(struct cxl_afu *afu, int cr, u64 off, u32 in) in native_afu_cr_write32() argument
1530 (cr * afu->crs_len) + off, in); in native_afu_cr_write32()
[all …]
/linux-4.19.296/fs/ntfs/
Dcollate.h29 static inline bool ntfs_is_collation_rule_supported(COLLATION_RULE cr) { in ntfs_is_collation_rule_supported() argument
37 if (unlikely(cr != COLLATION_BINARY && cr != COLLATION_NTOFS_ULONG)) in ntfs_is_collation_rule_supported()
39 i = le32_to_cpu(cr); in ntfs_is_collation_rule_supported()
46 extern int ntfs_collate(ntfs_volume *vol, COLLATION_RULE cr,
Dcollate.c101 int ntfs_collate(ntfs_volume *vol, COLLATION_RULE cr, in ntfs_collate() argument
111 BUG_ON(cr != COLLATION_BINARY && cr != COLLATION_NTOFS_ULONG); in ntfs_collate()
112 i = le32_to_cpu(cr); in ntfs_collate()
/linux-4.19.296/drivers/rtc/
Drtc-stm32.c97 u16 cr; member
210 unsigned int status, cr; in stm32_rtc_alarm_irq() local
215 cr = readl_relaxed(rtc->base + regs->cr); in stm32_rtc_alarm_irq()
218 (cr & STM32_RTC_CR_ALRAIE)) { in stm32_rtc_alarm_irq()
342 unsigned int alrmar, cr, status; in stm32_rtc_read_alarm() local
345 cr = readl_relaxed(rtc->base + regs->cr); in stm32_rtc_read_alarm()
398 alrm->enabled = (cr & STM32_RTC_CR_ALRAE) ? 1 : 0; in stm32_rtc_read_alarm()
409 unsigned int cr; in stm32_rtc_alarm_irq_enable() local
411 cr = readl_relaxed(rtc->base + regs->cr); in stm32_rtc_alarm_irq_enable()
417 cr |= (STM32_RTC_CR_ALRAIE | STM32_RTC_CR_ALRAE); in stm32_rtc_alarm_irq_enable()
[all …]
Drtc-ds1374.c191 int cr, sr; in ds1374_read_alarm() local
199 cr = ret = i2c_smbus_read_byte_data(client, DS1374_REG_CR); in ds1374_read_alarm()
216 alarm->enabled = !!(cr & DS1374_REG_CR_WACE); in ds1374_read_alarm()
230 int cr; in ds1374_set_alarm() local
256 ret = cr = i2c_smbus_read_byte_data(client, DS1374_REG_CR); in ds1374_set_alarm()
262 cr &= ~DS1374_REG_CR_WACE; in ds1374_set_alarm()
264 ret = i2c_smbus_write_byte_data(client, DS1374_REG_CR, cr); in ds1374_set_alarm()
273 cr |= DS1374_REG_CR_WACE | DS1374_REG_CR_AIE; in ds1374_set_alarm()
274 cr &= ~DS1374_REG_CR_WDALM; in ds1374_set_alarm()
276 ret = i2c_smbus_write_byte_data(client, DS1374_REG_CR, cr); in ds1374_set_alarm()
[all …]
Drtc-at91rm9200.c162 unsigned long cr; in at91_rtc_settime() local
171 cr = at91_rtc_read(AT91_RTC_CR); in at91_rtc_settime()
172 at91_rtc_write(AT91_RTC_CR, cr | AT91_RTC_UPDCAL | AT91_RTC_UPDTIM); in at91_rtc_settime()
191 cr = at91_rtc_read(AT91_RTC_CR); in at91_rtc_settime()
193 at91_rtc_write(AT91_RTC_CR, cr & ~(AT91_RTC_UPDCAL | AT91_RTC_UPDTIM)); in at91_rtc_settime()
/linux-4.19.296/drivers/isdn/hisax/
Dq931.c1192 unsigned char pd, cr_l, cr, mt; in dlogframe() local
1257 cr = *buf++; in dlogframe()
1259 cr = 0; in dlogframe()
1268 cr & 0x7f, (cr & 0x80) ? "called" : "caller", in dlogframe()
1272 cr & 0x7f, (cr & 0x80) ? "called" : "caller", in dlogframe()
1281 cr & 0x7f, (cr & 0x80) ? "called" : "caller", in dlogframe()
1285 cr & 0x7f, (cr & 0x80) ? "called" : "caller", in dlogframe()
1358 cr = *buf++; in dlogframe()
1360 cr = 0; in dlogframe()
1369 cr & 0x7f, (cr & 0x80) ? "called" : "caller", in dlogframe()
[all …]
Disdnl3.h36 struct l3_process *new_l3_process(struct PStack *st, int cr);
38 struct l3_process *getl3proc(struct PStack *st, int cr);
Disdnl3.c128 int l, cr = 0; in getcallref() local
136 cr = *p++; in getcallref()
137 return (cr); in getcallref()
234 *getl3proc(struct PStack *st, int cr) in getl3proc() argument
239 if (p->callref == cr) in getl3proc()
247 *new_l3_process(struct PStack *st, int cr) in new_l3_process() argument
252 printk(KERN_ERR "HiSax can't get memory for cr %d\n", cr); in new_l3_process()
265 p->callref = cr; in new_l3_process()
Dl3_1tr6.c745 int i, mt, cr; in up1tr6() local
784 cr = skb->data[2]; in up1tr6()
793 if (!(proc = getl3proc(st, cr))) { in up1tr6()
795 if (cr < 128) { in up1tr6()
796 if (!(proc = new_l3_process(st, cr))) { in up1tr6()
815 if (!(proc = new_l3_process(st, cr))) { in up1tr6()
851 int i, cr; in down1tr6() local
860 cr = newcallref(); in down1tr6()
861 cr |= 0x80; in down1tr6()
862 if (!(proc = new_l3_process(st, cr))) { in down1tr6()
[all …]
Dl3dss1.c86 *dss1_new_l3_process(struct PStack *st, int cr) in dss1_new_l3_process() argument
89 if (!(proc = new_l3_process(st, cr))) in dss1_new_l3_process()
197 l3dss1_dummy_invoke(struct PStack *st, int cr, int id, in l3dss1_dummy_invoke() argument
203 (cr == -1) ? "local" : "broadcast", id, ident, nlen); in l3dss1_dummy_invoke()
204 if (cr >= -1) return; /* ignore local data */ in l3dss1_dummy_invoke()
222 int cr, u_char *p) in l3dss1_parse_facility() argument
232 if ((!st) || (cr >= 0)) return; /* neither pc nor st specified */ in l3dss1_parse_facility()
353 { l3dss1_dummy_invoke(st, cr, id, ident, p, nlen); in l3dss1_parse_facility()
432 { if (cr == -1) in l3dss1_parse_facility()
477 { if (cr == -1) in l3dss1_parse_facility()
[all …]
Dl3ni1.c85 *ni1_new_l3_process(struct PStack *st, int cr) in ni1_new_l3_process() argument
88 if (!(proc = new_l3_process(st, cr))) in ni1_new_l3_process()
196 l3ni1_dummy_invoke(struct PStack *st, int cr, int id, in l3ni1_dummy_invoke() argument
202 (cr == -1) ? "local" : "broadcast", id, ident, nlen); in l3ni1_dummy_invoke()
203 if (cr >= -1) return; /* ignore local data */ in l3ni1_dummy_invoke()
221 int cr, u_char *p) in l3ni1_parse_facility() argument
231 if ((!st) || (cr >= 0)) return; /* neither pc nor st specified */ in l3ni1_parse_facility()
353 l3ni1_dummy_invoke(st, cr, id, ident, p, nlen); in l3ni1_parse_facility()
361 { if (cr == -1) in l3ni1_parse_facility()
406 { if (cr == -1) in l3ni1_parse_facility()
[all …]
/linux-4.19.296/drivers/pwm/
Dpwm-imx.c122 u32 cr; in imx_pwm_sw_reset() local
127 cr = readl(imx->mmio_base + MX3_PWMCR); in imx_pwm_sw_reset()
128 } while ((cr & MX3_PWMCR_SWR) && in imx_pwm_sw_reset()
131 if (cr & MX3_PWMCR_SWR) in imx_pwm_sw_reset()
165 u32 cr; in imx_pwm_apply_v2() local
210 cr = MX3_PWMCR_PRESCALER(prescale) | in imx_pwm_apply_v2()
216 cr |= MX3_PWMCR_POUTC; in imx_pwm_apply_v2()
218 writel(cr, imx->mmio_base + MX3_PWMCR); in imx_pwm_apply_v2()
/linux-4.19.296/drivers/clk/renesas/
Dclk-r8a73a4.c113 u32 value, cr; in r8a73a4_cpg_register_clock() local
117 cr = CPG_PLL2CR; in r8a73a4_cpg_register_clock()
120 cr = CPG_PLL2SCR; in r8a73a4_cpg_register_clock()
123 cr = CPG_PLL2HCR; in r8a73a4_cpg_register_clock()
128 value = readl(cpg->reg + cr); in r8a73a4_cpg_register_clock()
/linux-4.19.296/drivers/hid/usbhid/
Dusbkbd.c102 struct usb_ctrlrequest *cr; member
256 if (!(kbd->cr = kmalloc(sizeof(struct usb_ctrlrequest), GFP_KERNEL))) in usb_kbd_alloc_mem()
269 kfree(kbd->cr); in usb_kbd_free_mem()
353 kbd->cr->bRequestType = USB_TYPE_CLASS | USB_RECIP_INTERFACE; in usb_kbd_probe()
354 kbd->cr->bRequest = 0x09; in usb_kbd_probe()
355 kbd->cr->wValue = cpu_to_le16(0x200); in usb_kbd_probe()
356 kbd->cr->wIndex = cpu_to_le16(interface->desc.bInterfaceNumber); in usb_kbd_probe()
357 kbd->cr->wLength = cpu_to_le16(1); in usb_kbd_probe()
360 (void *) kbd->cr, kbd->leds, 1, in usb_kbd_probe()
Dhid-core.c406 usbhid->cr->bRequestType = USB_TYPE_CLASS | USB_RECIP_INTERFACE | dir; in hid_submit_ctrl()
407 usbhid->cr->bRequest = (dir == USB_DIR_OUT) ? HID_REQ_SET_REPORT : in hid_submit_ctrl()
409 usbhid->cr->wValue = cpu_to_le16(((report->type + 1) << 8) | in hid_submit_ctrl()
411 usbhid->cr->wIndex = cpu_to_le16(usbhid->ifnum); in hid_submit_ctrl()
412 usbhid->cr->wLength = cpu_to_le16(len); in hid_submit_ctrl()
415 usbhid->cr->bRequest == HID_REQ_SET_REPORT ? "Set_Report" : in hid_submit_ctrl()
417 usbhid->cr->wValue, usbhid->cr->wIndex, usbhid->cr->wLength); in hid_submit_ctrl()
864 usbhid->cr = kmalloc(sizeof(*usbhid->cr), GFP_KERNEL); in hid_alloc_buffers()
867 if (!usbhid->inbuf || !usbhid->outbuf || !usbhid->cr || in hid_alloc_buffers()
980 kfree(usbhid->cr); in hid_free_buffers()
[all …]
/linux-4.19.296/fs/ocfs2/
Dresize.c104 struct ocfs2_chain_rec *cr; in ocfs2_update_last_group_and_inode() local
152 cr = (&cl->cl_recs[chain]); in ocfs2_update_last_group_and_inode()
153 le32_add_cpu(&cr->c_total, num_bits); in ocfs2_update_last_group_and_inode()
154 le32_add_cpu(&cr->c_free, num_bits); in ocfs2_update_last_group_and_inode()
159 le32_add_cpu(&cr->c_free, -1 * backups); in ocfs2_update_last_group_and_inode()
473 struct ocfs2_chain_rec *cr; in ocfs2_group_add() local
535 cr = &cl->cl_recs[input->chain]; in ocfs2_group_add()
546 group->bg_next_group = cr->c_blkno; in ocfs2_group_add()
559 memset(cr, 0, sizeof(struct ocfs2_chain_rec)); in ocfs2_group_add()
562 cr->c_blkno = cpu_to_le64(input->group); in ocfs2_group_add()
[all …]
/linux-4.19.296/drivers/media/common/v4l2-tpg/
Dv4l2-tpg-core.c565 int y_offset, int *y, int *cb, int *cr) in rgb2ycbcr() argument
569 *cr = ((m[2][0] * r + m[2][1] * g + m[2][2] * b) >> 16) + (128 << 4); in rgb2ycbcr()
573 int *y, int *cb, int *cr) in color_to_ycbcr() argument
632 rgb2ycbcr(full ? bt601_full : bt601, r, g, b, y_offset, y, cb, cr); in color_to_ycbcr()
637 rgb2ycbcr(bt601, r, g, b, 16, y, cb, cr); in color_to_ycbcr()
642 rgb2ycbcr(rec709, r, g, b, 16, y, cb, cr); in color_to_ycbcr()
645 rgb2ycbcr(full ? bt2020_full : bt2020, r, g, b, y_offset, y, cb, cr); in color_to_ycbcr()
658 *cr = (((r - yc) * (full ? bt2020c_full[2] : bt2020c[2])) >> 16) + (128 << 4); in color_to_ycbcr()
660 *cr = (((r - yc) * (full ? bt2020c_full[3] : bt2020c[3])) >> 16) + (128 << 4); in color_to_ycbcr()
663 rgb2ycbcr(full ? smpte240m_full : smpte240m, r, g, b, y_offset, y, cb, cr); in color_to_ycbcr()
[all …]
/linux-4.19.296/drivers/iio/temperature/
Dtmp006.c82 int cr; in tmp006_read_raw() local
114 cr = (data->config & TMP006_CONFIG_CR_MASK) in tmp006_read_raw()
116 *val = tmp006_freqs[cr][0]; in tmp006_read_raw()
117 *val2 = tmp006_freqs[cr][1]; in tmp006_read_raw()
/linux-4.19.296/drivers/media/dvb-frontends/
Ddib3000mb.c449 enum fe_code_rate *cr; in dib3000mb_get_frontend() local
503 cr = &c->code_rate_LP; in dib3000mb_get_frontend()
531 cr = &c->code_rate_HP; in dib3000mb_get_frontend()
541 *cr = FEC_1_2; in dib3000mb_get_frontend()
545 *cr = FEC_2_3; in dib3000mb_get_frontend()
549 *cr = FEC_3_4; in dib3000mb_get_frontend()
553 *cr = FEC_4_5; in dib3000mb_get_frontend()
557 *cr = FEC_7_8; in dib3000mb_get_frontend()
/linux-4.19.296/include/net/
Dllc_pdu.h176 #define FRMR_INFO_SET_C_R_BIT(info, cr) (info->curr_rsv |= (((u8) cr) & 0x01)) argument
234 u8 ssap, u8 dsap, u8 cr) in llc_pdu_header_init() argument
253 pdu->ssap |= cr; in llc_pdu_header_init()
/linux-4.19.296/include/uapi/linux/
Dif_xdp.h38 struct xdp_ring_offset cr; /* Completion */ member

12