| /linux/lib/crc/ |
| H A D | crc4.c | 3 * crc4.c - simple crc-4 calculations. 6 #include <linux/crc4.h> 16 * crc4 - calculate the 4-bit crc of a value. 17 * @c: starting crc4 21 * Returns the crc4 value of @x, using polynomial 0b10111. 26 uint8_t crc4(uint8_t c, uint64_t x, int bits) in crc4() function 36 /* Calculate crc4 over four-bit nibbles, starting at the MSbit */ in crc4() 42 EXPORT_SYMBOL_GPL(crc4); 44 MODULE_DESCRIPTION("CRC4 calculations");
|
| H A D | Kconfig | 5 config CRC4 config 8 The CRC4 library functions. Select this if your module uses any of 9 the functions from <linux/crc4.h>.
|
| H A D | Makefile | 5 obj-$(CONFIG_CRC4) += crc4.o
|
| /linux/drivers/fsi/ |
| H A D | Kconfig | 9 select CRC4 34 select CRC4
|
| H A D | fsi-master-gpio.c | 6 #include <linux/crc4.h> 177 crc = crc4(0, 1 << top | msg->msg >> (msg->bits - top), top + 1); in msg_push_crc() 180 crc = crc4(crc, msg->msg, msg->bits - top); in msg_push_crc() 378 crc = crc4(0, 1, 1); in read_one_response() 379 crc = crc4(crc, msg.msg, msg.bits); in read_one_response()
|
| H A D | fsi-master-ast-cf.c | 7 #include <linux/crc4.h> 145 crc = crc4(0, 1 << top | msg->msg >> (msg->bits - top), top + 1); in msg_push_crc() 148 crc = crc4(crc, msg->msg, msg->bits - top); in msg_push_crc() 389 crc = crc4(0, 1, 1); in read_copro_response() 390 crc = crc4(crc, rtag, 4); in read_copro_response() 393 crc = crc4(crc, rdata, size); in read_copro_response() 397 crc = crc4(crc, rcrc, 4); in read_copro_response()
|
| H A D | fsi-core.c | 13 #include <linux/crc4.h> 525 crc = crc4(0, conf, 32); in fsi_slave_scan() 1058 crc = crc4(0, cfam_id, 32); in fsi_slave_init()
|
| /linux/include/linux/ |
| H A D | crc4.h | 7 extern uint8_t crc4(uint8_t c, uint64_t x, int bits);
|
| /linux/drivers/iio/imu/ |
| H A D | adis16550.c | 128 * This is a simplified implementation of lib/crc4.c. It could not be used 140 /* Calculate crc4 over four-bit nibbles, starting at the MSbit */ in spi_crc4() 850 * vector and crc4. in adis16550_trigger_handler() 898 /* crc4 is 0 on burst command */ in adis16550_update_scan_mode()
|
| /linux/Documentation/translations/zh_CN/core-api/ |
| H A D | kernel-api.rst | 138 lib/crc4.c
|
| /linux/drivers/gpu/drm/display/ |
| H A D | drm_dp_mst_topology.c | 287 u8 crc4; in drm_dp_encode_sideband_msg_hdr() local 296 crc4 = drm_dp_msg_header_crc4(buf, (idx * 2) - 1); in drm_dp_encode_sideband_msg_hdr() 297 buf[idx - 1] |= (crc4 & 0xf); in drm_dp_encode_sideband_msg_hdr() 306 u8 crc4; in drm_dp_decode_sideband_msg_hdr() local 317 crc4 = drm_dp_msg_header_crc4(buf, (len * 2) - 1); in drm_dp_decode_sideband_msg_hdr() 319 if ((crc4 & 0xf) != (buf[len - 1] & 0xf)) { in drm_dp_decode_sideband_msg_hdr() 320 drm_dbg_kms(mgr->dev, "crc4 mismatch 0x%x 0x%x\n", crc4, buf[len - 1]); in drm_dp_decode_sideband_msg_hdr() 738 u8 crc4; in drm_dp_crc_sideband_chunk_req() local 740 crc4 = drm_dp_msg_data_crc4(msg, len); in drm_dp_crc_sideband_chunk_req() 741 msg[len] = crc4; in drm_dp_crc_sideband_chunk_req() [all …]
|
| /linux/drivers/net/wan/ |
| H A D | farsync.h | 117 unsigned char structure; /* unframed, double, crc4, f4, f12, */
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_display_irq.c | 424 u32 crc4) in display_pipe_crc_irq_handler() argument 428 u32 crcs[5] = { crc0, crc1, crc2, crc3, crc4 }; in display_pipe_crc_irq_handler() 459 u32 crc4) {} in display_pipe_crc_irq_handler() argument
|
| /linux/drivers/net/ethernet/agere/ |
| H A D | et131x.h | 644 * 31-16: crc4
|
| /linux/drivers/isdn/hardware/mISDN/ |
| H A D | hfcmulti.c | 4724 printk(KERN_DEBUG "%s: PORT turn on CRC4 report:" in init_e1_port_hw() 4731 printk(KERN_DEBUG "%s: PORT turn off CRC4" in init_e1_port_hw()
|