cf                 53 arch/arm/mach-s3c24xx/mach-osiris-dvs.c 	struct cpufreq_freqs *cf = data;
cf                 54 arch/arm/mach-s3c24xx/mach-osiris-dvs.c 	struct s3c_cpufreq_freqs *freqs = to_s3c_cpufreq(cf);
cf                935 arch/mips/cavium-octeon/octeon-platform.c 		int cf = fdt_path_offset(initial_boot_params, alias_prop);
cf                982 arch/mips/cavium-octeon/octeon-platform.c 			fdt_nop_property(initial_boot_params, cf, "cavium,true-ide");
cf                983 arch/mips/cavium-octeon/octeon-platform.c 			fdt_nop_property(initial_boot_params, cf, "cavium,dma-engine-handle");
cf                987 arch/mips/cavium-octeon/octeon-platform.c 				fdt_setprop_inplace(initial_boot_params, cf,
cf                997 arch/mips/cavium-octeon/octeon-platform.c 		fdt_setprop_inplace(initial_boot_params, cf,
cf               1000 arch/mips/cavium-octeon/octeon-platform.c 		bootbus = fdt_parent_offset(initial_boot_params, cf);
cf               1018 arch/mips/cavium-octeon/octeon-platform.c 		fdt_nop_node(initial_boot_params, cf);
cf                 25 arch/mips/pci/pci-xtalk-bridge.c 	u32 cf, shift, mask;
cf                 30 arch/mips/pci/pci-xtalk-bridge.c 		if (get_dbe(cf, (u32 *)addr))
cf                 35 arch/mips/pci/pci-xtalk-bridge.c 		cf = 0x00000100;
cf                 38 arch/mips/pci/pci-xtalk-bridge.c 		cf = 0;
cf                 43 arch/mips/pci/pci-xtalk-bridge.c 	*value = (cf >> shift) & mask;
cf                 50 arch/mips/pci/pci-xtalk-bridge.c 	u32 cf, shift, mask, smask;
cf                 55 arch/mips/pci/pci-xtalk-bridge.c 	if (get_dbe(cf, (u32 *)addr))
cf                 62 arch/mips/pci/pci-xtalk-bridge.c 	cf = (cf & ~smask) | ((value & mask) << shift);
cf                 63 arch/mips/pci/pci-xtalk-bridge.c 	if (put_dbe(cf, (u32 *)addr))
cf                101 arch/mips/pci/pci-xtalk-bridge.c 	u32 cf;
cf                105 arch/mips/pci/pci-xtalk-bridge.c 	if (get_dbe(cf, (u32 *)addr))
cf                112 arch/mips/pci/pci-xtalk-bridge.c 	if (cf == (PCI_VENDOR_ID_SGI | (PCI_DEVICE_ID_SGI_IOC3 << 16))) {
cf                138 arch/mips/pci/pci-xtalk-bridge.c 	u32 cf;
cf                143 arch/mips/pci/pci-xtalk-bridge.c 	if (get_dbe(cf, (u32 *)addr))
cf                150 arch/mips/pci/pci-xtalk-bridge.c 	if (cf == (PCI_VENDOR_ID_SGI | (PCI_DEVICE_ID_SGI_IOC3 << 16))) {
cf                184 arch/mips/pci/pci-xtalk-bridge.c 	u32 cf;
cf                188 arch/mips/pci/pci-xtalk-bridge.c 	if (get_dbe(cf, (u32 *)addr))
cf                195 arch/mips/pci/pci-xtalk-bridge.c 	if (cf == (PCI_VENDOR_ID_SGI | (PCI_DEVICE_ID_SGI_IOC3 << 16))) {
cf                224 arch/mips/pci/pci-xtalk-bridge.c 	u32 cf;
cf                229 arch/mips/pci/pci-xtalk-bridge.c 	if (get_dbe(cf, (u32 *)addr))
cf                236 arch/mips/pci/pci-xtalk-bridge.c 	if (cf == (PCI_VENDOR_ID_SGI | (PCI_DEVICE_ID_SGI_IOC3 << 16))) {
cf               3441 arch/x86/kvm/emulate.c 	bool af, cf, old_cf;
cf               3443 arch/x86/kvm/emulate.c 	cf = ctxt->eflags & X86_EFLAGS_CF;
cf               3447 arch/x86/kvm/emulate.c 	old_cf = cf;
cf               3448 arch/x86/kvm/emulate.c 	cf = false;
cf               3452 arch/x86/kvm/emulate.c 		cf = old_cf | (al >= 250);
cf               3459 arch/x86/kvm/emulate.c 		cf = true;
cf               3469 arch/x86/kvm/emulate.c 	if (cf)
cf                777 drivers/block/drbd/drbd_main.c 	int size, cf;
cf                802 drivers/block/drbd/drbd_main.c 	cf = 0;
cf                804 drivers/block/drbd/drbd_main.c 		cf |= CF_DISCARD_MY_DATA;
cf                806 drivers/block/drbd/drbd_main.c 		cf |= CF_DRY_RUN;
cf                807 drivers/block/drbd/drbd_main.c 	p->conn_flags    = cpu_to_be32(cf);
cf               3670 drivers/block/drbd/drbd_receiver.c 	int p_proto, p_discard_my_data, p_two_primaries, cf;
cf               3681 drivers/block/drbd/drbd_receiver.c 	cf		= be32_to_cpu(p->conn_flags);
cf               3682 drivers/block/drbd/drbd_receiver.c 	p_discard_my_data = cf & CF_DISCARD_MY_DATA;
cf               3698 drivers/block/drbd/drbd_receiver.c 		if (cf & CF_DRY_RUN)
cf               4195 drivers/block/floppy.c 	int cf;
cf               4209 drivers/block/floppy.c 		cf = (test_bit(FD_DISK_CHANGED_BIT, &UDRS->flags) ||
cf               4211 drivers/block/floppy.c 		if (!(cf || test_bit(drive, &fake_change) || drive_no_geom(drive))) {
cf               4221 drivers/block/floppy.c 		if (cf)
cf               4227 drivers/block/floppy.c 			if (cf)
cf                 14 drivers/clk/sunxi-ng/ccu_frac.c 				struct ccu_frac_internal *cf)
cf                 19 drivers/clk/sunxi-ng/ccu_frac.c 	return !(readl(common->base + common->reg) & cf->enable);
cf                 23 drivers/clk/sunxi-ng/ccu_frac.c 			    struct ccu_frac_internal *cf)
cf                 33 drivers/clk/sunxi-ng/ccu_frac.c 	writel(reg & ~cf->enable, common->base + common->reg);
cf                 38 drivers/clk/sunxi-ng/ccu_frac.c 			     struct ccu_frac_internal *cf)
cf                 48 drivers/clk/sunxi-ng/ccu_frac.c 	writel(reg | cf->enable, common->base + common->reg);
cf                 53 drivers/clk/sunxi-ng/ccu_frac.c 			      struct ccu_frac_internal *cf,
cf                 59 drivers/clk/sunxi-ng/ccu_frac.c 	return (cf->rates[0] == rate) || (cf->rates[1] == rate);
cf                 63 drivers/clk/sunxi-ng/ccu_frac.c 					struct ccu_frac_internal *cf)
cf                 73 drivers/clk/sunxi-ng/ccu_frac.c 		 clk_hw_get_name(&common->hw), cf->rates[0], cf->rates[1]);
cf                 78 drivers/clk/sunxi-ng/ccu_frac.c 		 clk_hw_get_name(&common->hw), reg, cf->select);
cf                 80 drivers/clk/sunxi-ng/ccu_frac.c 	return (reg & cf->select) ? cf->rates[1] : cf->rates[0];
cf                 84 drivers/clk/sunxi-ng/ccu_frac.c 			     struct ccu_frac_internal *cf,
cf                 93 drivers/clk/sunxi-ng/ccu_frac.c 	if (cf->rates[0] == rate)
cf                 95 drivers/clk/sunxi-ng/ccu_frac.c 	else if (cf->rates[1] == rate)
cf                 96 drivers/clk/sunxi-ng/ccu_frac.c 		sel = cf->select;
cf                102 drivers/clk/sunxi-ng/ccu_frac.c 	reg &= ~cf->select;
cf                 28 drivers/clk/sunxi-ng/ccu_frac.h 				struct ccu_frac_internal *cf);
cf                 30 drivers/clk/sunxi-ng/ccu_frac.h 			    struct ccu_frac_internal *cf);
cf                 32 drivers/clk/sunxi-ng/ccu_frac.h 			     struct ccu_frac_internal *cf);
cf                 35 drivers/clk/sunxi-ng/ccu_frac.h 			      struct ccu_frac_internal *cf,
cf                 39 drivers/clk/sunxi-ng/ccu_frac.h 					struct ccu_frac_internal *cf);
cf                 42 drivers/clk/sunxi-ng/ccu_frac.h 			     struct ccu_frac_internal *cf,
cf                291 drivers/clk/tegra/clk-dfll.c 	u32				cf;
cf               1404 drivers/clk/tegra/clk-dfll.c 		(td->cf << DFLL_PARAMS_CF_PARAM_SHIFT) |
cf               1851 drivers/clk/tegra/clk-dfll.c 	ok &= read_dt_param(td, "nvidia,cf", &td->cf);
cf               1408 drivers/clk/tegra/clk-tegra210.c 	unsigned long cf, p_rate;
cf               1433 drivers/clk/tegra/clk-tegra210.c 	cf = input_rate / cfg->m;
cf               1434 drivers/clk/tegra/clk-tegra210.c 	cfg->n = p_rate / cf;
cf               1439 drivers/clk/tegra/clk-tegra210.c 		unsigned long rem = p_rate - cf * cfg->n;
cf               1444 drivers/clk/tegra/clk-tegra210.c 			do_div(s, cf);
cf                240 drivers/dma/fsl_raid.c static void fill_cfd_frame(struct fsl_re_cmpnd_frame *cf, u8 index,
cf                246 drivers/dma/fsl_raid.c 	cf[index].efrl32 = efrl;
cf                247 drivers/dma/fsl_raid.c 	cf[index].addr_high = upper_32_bits(addr);
cf                248 drivers/dma/fsl_raid.c 	cf[index].addr_low = lower_32_bits(addr);
cf                253 drivers/dma/fsl_raid.c 					    void *cf, dma_addr_t paddr)
cf                263 drivers/dma/fsl_raid.c 	desc->cf_addr = cf;
cf                266 drivers/dma/fsl_raid.c 	desc->cdb_addr = (void *)(cf + FSL_RE_CF_DESC_SIZE);
cf                276 drivers/dma/fsl_raid.c 	void *cf;
cf                298 drivers/dma/fsl_raid.c 		cf = dma_pool_alloc(re_chan->re_dev->cf_desc_pool, GFP_NOWAIT,
cf                300 drivers/dma/fsl_raid.c 		if (!cf) {
cf                305 drivers/dma/fsl_raid.c 		desc = fsl_re_init_desc(re_chan, desc, cf, paddr);
cf                324 drivers/dma/fsl_raid.c 	struct fsl_re_cmpnd_frame *cf;
cf                368 drivers/dma/fsl_raid.c 	cf = desc->cf_addr;
cf                369 drivers/dma/fsl_raid.c 	fill_cfd_frame(cf, 0, sizeof(*xor), desc->cdb_paddr, 0);
cf                372 drivers/dma/fsl_raid.c 	fill_cfd_frame(cf, 1, len, dest, 0);
cf                376 drivers/dma/fsl_raid.c 		fill_cfd_frame(cf, i, len, src[j], 0);
cf                379 drivers/dma/fsl_raid.c 		fill_cfd_frame(cf, i++, len, dest, 0);
cf                382 drivers/dma/fsl_raid.c 	cf[i - 1].efrl32 |= 1 << FSL_RE_CF_FINAL_SHIFT;
cf                411 drivers/dma/fsl_raid.c 	struct fsl_re_cmpnd_frame *cf;
cf                489 drivers/dma/fsl_raid.c 	cf = desc->cf_addr;
cf                490 drivers/dma/fsl_raid.c 	fill_cfd_frame(cf, 0, sizeof(struct fsl_re_pq_cdb), desc->cdb_paddr, 0);
cf                494 drivers/dma/fsl_raid.c 		fill_cfd_frame(cf, i, len, dest[j], 0);
cf                498 drivers/dma/fsl_raid.c 		fill_cfd_frame(cf, i, len, src[j], 0);
cf                506 drivers/dma/fsl_raid.c 			fill_cfd_frame(cf, i++, len, dest[0], 0);
cf                507 drivers/dma/fsl_raid.c 			fill_cfd_frame(cf, i++, len, dest[1], 0);
cf                508 drivers/dma/fsl_raid.c 			fill_cfd_frame(cf, i++, len, dest[1], 0);
cf                516 drivers/dma/fsl_raid.c 	cf[i - 1].efrl32 |= 1 << FSL_RE_CF_FINAL_SHIFT;
cf                533 drivers/dma/fsl_raid.c 	struct fsl_re_cmpnd_frame *cf;
cf                559 drivers/dma/fsl_raid.c 	cf = desc->cf_addr;
cf                560 drivers/dma/fsl_raid.c 	fill_cfd_frame(cf, 0, sizeof(*move), desc->cdb_paddr, 0);
cf                565 drivers/dma/fsl_raid.c 	fill_cfd_frame(cf, 1, length, dest, 0);
cf                568 drivers/dma/fsl_raid.c 	fill_cfd_frame(cf, 2, length, src, 1);
cf                577 drivers/dma/fsl_raid.c 	void *cf;
cf                587 drivers/dma/fsl_raid.c 		cf = dma_pool_alloc(re_chan->re_dev->cf_desc_pool, GFP_KERNEL,
cf                589 drivers/dma/fsl_raid.c 		if (!cf) {
cf                595 drivers/dma/fsl_raid.c 		fsl_re_init_desc(re_chan, desc, cf, paddr);
cf               2212 drivers/md/dm-cache-target.c static void init_features(struct cache_features *cf)
cf               2214 drivers/md/dm-cache-target.c 	cf->mode = CM_WRITE;
cf               2215 drivers/md/dm-cache-target.c 	cf->io_mode = CM_IO_WRITEBACK;
cf               2216 drivers/md/dm-cache-target.c 	cf->metadata_version = 1;
cf               2217 drivers/md/dm-cache-target.c 	cf->discard_passdown = true;
cf               2230 drivers/md/dm-cache-target.c 	struct cache_features *cf = &ca->features;
cf               2232 drivers/md/dm-cache-target.c 	init_features(cf);
cf               2242 drivers/md/dm-cache-target.c 			cf->io_mode = CM_IO_WRITEBACK;
cf               2247 drivers/md/dm-cache-target.c 			cf->io_mode = CM_IO_WRITETHROUGH;
cf               2252 drivers/md/dm-cache-target.c 			cf->io_mode = CM_IO_PASSTHROUGH;
cf               2257 drivers/md/dm-cache-target.c 			cf->metadata_version = 2;
cf               2260 drivers/md/dm-cache-target.c 			cf->discard_passdown = false;
cf               3111 drivers/md/dm-cache-target.c 	struct cache_features *cf = &cache->features;
cf               3112 drivers/md/dm-cache-target.c 	unsigned count = (cf->metadata_version == 2) + !cf->discard_passdown + 1;
cf               3116 drivers/md/dm-cache-target.c 	if (cf->metadata_version == 2)
cf               3131 drivers/md/dm-cache-target.c 		      cache_device_name(cache), (int) cf->io_mode);
cf               3134 drivers/md/dm-cache-target.c 	if (!cf->discard_passdown)
cf                684 drivers/media/platform/vicodec/codec-fwht.c 			struct fwht_cframe *cf, u32 height, u32 width,
cf                710 drivers/media/platform/vicodec/codec-fwht.c 				fwht(input, cf->coeffs, stride, input_step, 1);
cf                711 drivers/media/platform/vicodec/codec-fwht.c 				quantize_intra(cf->coeffs, cf->de_coeffs,
cf                712 drivers/media/platform/vicodec/codec-fwht.c 					       cf->i_frame_qp);
cf                716 drivers/media/platform/vicodec/codec-fwht.c 				fwht16(deltablock, cf->coeffs, 8, 0);
cf                717 drivers/media/platform/vicodec/codec-fwht.c 				quantize_inter(cf->coeffs, cf->de_coeffs,
cf                718 drivers/media/platform/vicodec/codec-fwht.c 					       cf->p_frame_qp);
cf                721 drivers/media/platform/vicodec/codec-fwht.c 				ifwht(cf->de_coeffs, cf->de_fwht, blocktype);
cf                724 drivers/media/platform/vicodec/codec-fwht.c 					add_deltas(cf->de_fwht, refp, 8, 1);
cf                725 drivers/media/platform/vicodec/codec-fwht.c 				fill_decoder_block(refp, cf->de_fwht, 8, 1);
cf                731 drivers/media/platform/vicodec/codec-fwht.c 			size = rlc(cf->coeffs, *rlco, blocktype);
cf                778 drivers/media/platform/vicodec/codec-fwht.c 		      struct fwht_cframe *cf,
cf                784 drivers/media/platform/vicodec/codec-fwht.c 	__be16 *rlco = cf->rlc_data;
cf                789 drivers/media/platform/vicodec/codec-fwht.c 	encoding = encode_plane(frm->luma, ref_frm->luma, &rlco, rlco_max, cf,
cf                803 drivers/media/platform/vicodec/codec-fwht.c 					 cf, chroma_h, chroma_w,
cf                811 drivers/media/platform/vicodec/codec-fwht.c 					 cf, chroma_h, chroma_w,
cf                822 drivers/media/platform/vicodec/codec-fwht.c 					 rlco_max, cf, height, width,
cf                830 drivers/media/platform/vicodec/codec-fwht.c 	cf->size = (rlco - cf->rlc_data) * sizeof(*rlco);
cf                834 drivers/media/platform/vicodec/codec-fwht.c static bool decode_plane(struct fwht_cframe *cf, const __be16 **rlco,
cf                875 drivers/media/platform/vicodec/codec-fwht.c 				memcpy(cf->de_fwht, copy, sizeof(copy));
cf                877 drivers/media/platform/vicodec/codec-fwht.c 					add_deltas(cf->de_fwht, refp,
cf                879 drivers/media/platform/vicodec/codec-fwht.c 				fill_decoder_block(dstp, cf->de_fwht,
cf                885 drivers/media/platform/vicodec/codec-fwht.c 			stat = derlc(rlco, cf->coeffs, end_of_rlco_buf);
cf                889 drivers/media/platform/vicodec/codec-fwht.c 				dequantize_inter(cf->coeffs);
cf                891 drivers/media/platform/vicodec/codec-fwht.c 				dequantize_intra(cf->coeffs);
cf                893 drivers/media/platform/vicodec/codec-fwht.c 			ifwht(cf->coeffs, cf->de_fwht,
cf                898 drivers/media/platform/vicodec/codec-fwht.c 				memcpy(copy, cf->de_fwht, sizeof(copy));
cf                900 drivers/media/platform/vicodec/codec-fwht.c 				add_deltas(cf->de_fwht, refp,
cf                902 drivers/media/platform/vicodec/codec-fwht.c 			fill_decoder_block(dstp, cf->de_fwht, dst_stride,
cf                909 drivers/media/platform/vicodec/codec-fwht.c bool fwht_decode_frame(struct fwht_cframe *cf, u32 hdr_flags,
cf                916 drivers/media/platform/vicodec/codec-fwht.c 	const __be16 *rlco = cf->rlc_data;
cf                917 drivers/media/platform/vicodec/codec-fwht.c 	const __be16 *end_of_rlco_buf = cf->rlc_data +
cf                918 drivers/media/platform/vicodec/codec-fwht.c 			(cf->size / sizeof(*rlco)) - 1;
cf                920 drivers/media/platform/vicodec/codec-fwht.c 	if (!decode_plane(cf, &rlco, height, width, ref->luma, ref_stride,
cf                936 drivers/media/platform/vicodec/codec-fwht.c 		if (!decode_plane(cf, &rlco, h, w, ref->cb, ref_chroma_stride,
cf                942 drivers/media/platform/vicodec/codec-fwht.c 		if (!decode_plane(cf, &rlco, h, w, ref->cr, ref_chroma_stride,
cf                951 drivers/media/platform/vicodec/codec-fwht.c 		if (!decode_plane(cf, &rlco, height, width, ref->alpha, ref_stride,
cf                140 drivers/media/platform/vicodec/codec-fwht.h 		      struct fwht_cframe *cf,
cf                144 drivers/media/platform/vicodec/codec-fwht.h bool fwht_decode_frame(struct fwht_cframe *cf, u32 hdr_flags,
cf                218 drivers/media/platform/vicodec/codec-v4l2-fwht.c 	struct fwht_cframe cf;
cf                236 drivers/media/platform/vicodec/codec-v4l2-fwht.c 	cf.i_frame_qp = state->i_frame_qp;
cf                237 drivers/media/platform/vicodec/codec-v4l2-fwht.c 	cf.p_frame_qp = state->p_frame_qp;
cf                238 drivers/media/platform/vicodec/codec-v4l2-fwht.c 	cf.rlc_data = (__be16 *)(p_out + sizeof(*p_hdr));
cf                240 drivers/media/platform/vicodec/codec-v4l2-fwht.c 	encoding = fwht_encode_frame(&rf, &state->ref_frame, &cf,
cf                278 drivers/media/platform/vicodec/codec-v4l2-fwht.c 	p_hdr->size = htonl(cf.size);
cf                279 drivers/media/platform/vicodec/codec-v4l2-fwht.c 	return cf.size + sizeof(*p_hdr);
cf                285 drivers/media/platform/vicodec/codec-v4l2-fwht.c 	struct fwht_cframe cf;
cf                333 drivers/media/platform/vicodec/codec-v4l2-fwht.c 	cf.rlc_data = (__be16 *)p_in;
cf                334 drivers/media/platform/vicodec/codec-v4l2-fwht.c 	cf.size = ntohl(state->header.size);
cf                361 drivers/media/platform/vicodec/codec-v4l2-fwht.c 	if (!fwht_decode_frame(&cf, flags, components_num,
cf                124 drivers/misc/apds990x.c 	struct	apds990x_chip_factors	cf;
cf                278 drivers/misc/apds990x.c 		APDS_PARAM_SCALE * 64) / (chip->cf.ga * chip->cf.df);
cf                440 drivers/misc/apds990x.c 	iac1 = (chip->cf.cf1 * clear - chip->cf.irf1 * ir) / APDS_PARAM_SCALE;
cf                441 drivers/misc/apds990x.c 	iac2 = (chip->cf.cf2 * clear - chip->cf.irf2 * ir) / APDS_PARAM_SCALE;
cf                446 drivers/misc/apds990x.c 	lpc = APDS990X_LUX_OUTPUT_SCALE * (chip->cf.df * chip->cf.ga) /
cf               1077 drivers/misc/apds990x.c 	if (chip->pdata->cf.ga == 0) {
cf               1079 drivers/misc/apds990x.c 		chip->cf.ga = 1966; /* 0.48 * APDS_PARAM_SCALE */
cf               1080 drivers/misc/apds990x.c 		chip->cf.cf1 = 4096; /* 1.00 * APDS_PARAM_SCALE */
cf               1081 drivers/misc/apds990x.c 		chip->cf.irf1 = 9134; /* 2.23 * APDS_PARAM_SCALE */
cf               1082 drivers/misc/apds990x.c 		chip->cf.cf2 = 2867; /* 0.70 * APDS_PARAM_SCALE */
cf               1083 drivers/misc/apds990x.c 		chip->cf.irf2 = 5816; /* 1.42 * APDS_PARAM_SCALE */
cf               1084 drivers/misc/apds990x.c 		chip->cf.df = 52;
cf               1086 drivers/misc/apds990x.c 		chip->cf = chip->pdata->cf;
cf               1091 drivers/misc/apds990x.c 		(chip->cf.irf1 - chip->cf.irf2) * APDS_PARAM_SCALE /
cf               1092 drivers/misc/apds990x.c 		(chip->cf.cf1 - chip->cf.cf2);
cf               1094 drivers/misc/apds990x.c 		chip->cf.cf1;
cf               1095 drivers/misc/apds990x.c 	chip->rcf.irf1 = chip->cf.irf1 * APDS_PARAM_SCALE /
cf               1096 drivers/misc/apds990x.c 		chip->cf.cf1;
cf               1098 drivers/misc/apds990x.c 		chip->cf.cf2;
cf               1099 drivers/misc/apds990x.c 	chip->rcf.irf2 = chip->cf.irf2 * APDS_PARAM_SCALE /
cf               1100 drivers/misc/apds990x.c 		chip->cf.cf2;
cf                453 drivers/net/can/at91_can.c 	struct can_frame *cf = (struct can_frame *)skb->data;
cf                469 drivers/net/can/at91_can.c 	reg_mid = at91_can_id_to_reg_mid(cf->can_id);
cf                470 drivers/net/can/at91_can.c 	reg_mcr = ((cf->can_id & CAN_RTR_FLAG) ? AT91_MCR_MRTR : 0) |
cf                471 drivers/net/can/at91_can.c 		(cf->can_dlc << 16) | AT91_MCR_MTCR;
cf                478 drivers/net/can/at91_can.c 	at91_write(priv, AT91_MDL(mb), *(u32 *)(cf->data + 0));
cf                479 drivers/net/can/at91_can.c 	at91_write(priv, AT91_MDH(mb), *(u32 *)(cf->data + 4));
cf                484 drivers/net/can/at91_can.c 	stats->tx_bytes += cf->can_dlc;
cf                543 drivers/net/can/at91_can.c 	struct can_frame *cf;
cf                549 drivers/net/can/at91_can.c 	skb = alloc_can_err_skb(dev, &cf);
cf                553 drivers/net/can/at91_can.c 	cf->can_id |= CAN_ERR_CRTL;
cf                554 drivers/net/can/at91_can.c 	cf->data[1] = CAN_ERR_CRTL_RX_OVERFLOW;
cf                557 drivers/net/can/at91_can.c 	stats->rx_bytes += cf->can_dlc;
cf                571 drivers/net/can/at91_can.c 		struct can_frame *cf)
cf                578 drivers/net/can/at91_can.c 		cf->can_id = ((reg_mid >> 0) & CAN_EFF_MASK) | CAN_EFF_FLAG;
cf                580 drivers/net/can/at91_can.c 		cf->can_id = (reg_mid >> 18) & CAN_SFF_MASK;
cf                583 drivers/net/can/at91_can.c 	cf->can_dlc = get_can_dlc((reg_msr >> 16) & 0xf);
cf                586 drivers/net/can/at91_can.c 		cf->can_id |= CAN_RTR_FLAG;
cf                588 drivers/net/can/at91_can.c 		*(u32 *)(cf->data + 0) = at91_read(priv, AT91_MDL(mb));
cf                589 drivers/net/can/at91_can.c 		*(u32 *)(cf->data + 4) = at91_read(priv, AT91_MDH(mb));
cf                610 drivers/net/can/at91_can.c 	struct can_frame *cf;
cf                613 drivers/net/can/at91_can.c 	skb = alloc_can_skb(dev, &cf);
cf                619 drivers/net/can/at91_can.c 	at91_read_mb(dev, mb, cf);
cf                622 drivers/net/can/at91_can.c 	stats->rx_bytes += cf->can_dlc;
cf                721 drivers/net/can/at91_can.c 		struct can_frame *cf, u32 reg_sr)
cf                730 drivers/net/can/at91_can.c 		cf->can_id |= CAN_ERR_PROT | CAN_ERR_BUSERROR;
cf                738 drivers/net/can/at91_can.c 		cf->can_id |= CAN_ERR_PROT | CAN_ERR_BUSERROR;
cf                739 drivers/net/can/at91_can.c 		cf->data[2] |= CAN_ERR_PROT_STUFF;
cf                746 drivers/net/can/at91_can.c 		cf->can_id |= CAN_ERR_ACK;
cf                754 drivers/net/can/at91_can.c 		cf->can_id |= CAN_ERR_PROT | CAN_ERR_BUSERROR;
cf                755 drivers/net/can/at91_can.c 		cf->data[2] |= CAN_ERR_PROT_FORM;
cf                763 drivers/net/can/at91_can.c 		cf->can_id |= CAN_ERR_PROT | CAN_ERR_BUSERROR;
cf                764 drivers/net/can/at91_can.c 		cf->data[2] |= CAN_ERR_PROT_BIT;
cf                771 drivers/net/can/at91_can.c 	struct can_frame *cf;
cf                776 drivers/net/can/at91_can.c 	skb = alloc_can_err_skb(dev, &cf);
cf                780 drivers/net/can/at91_can.c 	at91_poll_err_frame(dev, cf, reg_sr);
cf                783 drivers/net/can/at91_can.c 	dev->stats.rx_bytes += cf->can_dlc;
cf                876 drivers/net/can/at91_can.c 		struct can_frame *cf, enum can_state new_state)
cf                896 drivers/net/can/at91_can.c 			cf->can_id |= CAN_ERR_CRTL;
cf                897 drivers/net/can/at91_can.c 			cf->data[1] = (bec.txerr > bec.rxerr) ?
cf                913 drivers/net/can/at91_can.c 			cf->can_id |= CAN_ERR_CRTL;
cf                914 drivers/net/can/at91_can.c 			cf->data[1] = (bec.txerr > bec.rxerr) ?
cf                925 drivers/net/can/at91_can.c 			cf->can_id |= CAN_ERR_RESTARTED;
cf                949 drivers/net/can/at91_can.c 		cf->can_id |= CAN_ERR_PROT;
cf                950 drivers/net/can/at91_can.c 		cf->data[2] = CAN_ERR_PROT_ACTIVE;
cf                965 drivers/net/can/at91_can.c 		cf->can_id |= CAN_ERR_BUSOFF;
cf               1012 drivers/net/can/at91_can.c 	struct can_frame *cf;
cf               1043 drivers/net/can/at91_can.c 	skb = alloc_can_err_skb(dev, &cf);
cf               1047 drivers/net/can/at91_can.c 	at91_irq_err_state(dev, cf, new_state);
cf               1050 drivers/net/can/at91_can.c 	dev->stats.rx_bytes += cf->can_dlc;
cf                913 drivers/net/can/c_can/c_can.c 	struct can_frame *cf;
cf                941 drivers/net/can/c_can/c_can.c 	skb = alloc_can_err_skb(dev, &cf);
cf                953 drivers/net/can/c_can/c_can.c 		cf->can_id |= CAN_ERR_CRTL;
cf                954 drivers/net/can/c_can/c_can.c 		cf->data[1] = CAN_ERR_CRTL_ACTIVE;
cf                955 drivers/net/can/c_can/c_can.c 		cf->data[6] = bec.txerr;
cf                956 drivers/net/can/c_can/c_can.c 		cf->data[7] = bec.rxerr;
cf                960 drivers/net/can/c_can/c_can.c 		cf->can_id |= CAN_ERR_CRTL;
cf                961 drivers/net/can/c_can/c_can.c 		cf->data[1] = (bec.txerr > bec.rxerr) ?
cf                964 drivers/net/can/c_can/c_can.c 		cf->data[6] = bec.txerr;
cf                965 drivers/net/can/c_can/c_can.c 		cf->data[7] = bec.rxerr;
cf                970 drivers/net/can/c_can/c_can.c 		cf->can_id |= CAN_ERR_CRTL;
cf                972 drivers/net/can/c_can/c_can.c 			cf->data[1] |= CAN_ERR_CRTL_RX_PASSIVE;
cf                974 drivers/net/can/c_can/c_can.c 			cf->data[1] |= CAN_ERR_CRTL_TX_PASSIVE;
cf                976 drivers/net/can/c_can/c_can.c 		cf->data[6] = bec.txerr;
cf                977 drivers/net/can/c_can/c_can.c 		cf->data[7] = bec.rxerr;
cf                981 drivers/net/can/c_can/c_can.c 		cf->can_id |= CAN_ERR_BUSOFF;
cf                989 drivers/net/can/c_can/c_can.c 	stats->rx_bytes += cf->can_dlc;
cf               1000 drivers/net/can/c_can/c_can.c 	struct can_frame *cf;
cf               1019 drivers/net/can/c_can/c_can.c 	skb = alloc_can_err_skb(dev, &cf);
cf               1027 drivers/net/can/c_can/c_can.c 	cf->can_id |= CAN_ERR_PROT | CAN_ERR_BUSERROR;
cf               1032 drivers/net/can/c_can/c_can.c 		cf->data[2] |= CAN_ERR_PROT_STUFF;
cf               1036 drivers/net/can/c_can/c_can.c 		cf->data[2] |= CAN_ERR_PROT_FORM;
cf               1040 drivers/net/can/c_can/c_can.c 		cf->data[3] = CAN_ERR_PROT_LOC_ACK;
cf               1044 drivers/net/can/c_can/c_can.c 		cf->data[2] |= CAN_ERR_PROT_BIT1;
cf               1048 drivers/net/can/c_can/c_can.c 		cf->data[2] |= CAN_ERR_PROT_BIT0;
cf               1052 drivers/net/can/c_can/c_can.c 		cf->data[3] = CAN_ERR_PROT_LOC_CRC_SEQ;
cf               1059 drivers/net/can/c_can/c_can.c 	stats->rx_bytes += cf->can_dlc;
cf                388 drivers/net/can/cc770/cc770.c 	struct can_frame *cf = (struct can_frame *)priv->tx_skb->data;
cf                393 drivers/net/can/cc770/cc770.c 	dlc = cf->can_dlc;
cf                394 drivers/net/can/cc770/cc770.c 	id = cf->can_id;
cf                395 drivers/net/can/cc770/cc770.c 	rtr = cf->can_id & CAN_RTR_FLAG ? 0 : MSGCFG_DIR;
cf                418 drivers/net/can/cc770/cc770.c 		cc770_write_reg(priv, msgobj[mo].data[i], cf->data[i]);
cf                452 drivers/net/can/cc770/cc770.c 	struct can_frame *cf;
cf                458 drivers/net/can/cc770/cc770.c 	skb = alloc_can_skb(dev, &cf);
cf                470 drivers/net/can/cc770/cc770.c 		cf->can_id = CAN_RTR_FLAG;
cf                472 drivers/net/can/cc770/cc770.c 			cf->can_id |= CAN_EFF_FLAG;
cf                473 drivers/net/can/cc770/cc770.c 		cf->can_dlc = 0;
cf                488 drivers/net/can/cc770/cc770.c 		cf->can_id = id;
cf                489 drivers/net/can/cc770/cc770.c 		cf->can_dlc = get_can_dlc((config & 0xf0) >> 4);
cf                490 drivers/net/can/cc770/cc770.c 		for (i = 0; i < cf->can_dlc; i++)
cf                491 drivers/net/can/cc770/cc770.c 			cf->data[i] = cc770_read_reg(priv, msgobj[mo].data[i]);
cf                495 drivers/net/can/cc770/cc770.c 	stats->rx_bytes += cf->can_dlc;
cf                503 drivers/net/can/cc770/cc770.c 	struct can_frame *cf;
cf                509 drivers/net/can/cc770/cc770.c 	skb = alloc_can_err_skb(dev, &cf);
cf                515 drivers/net/can/cc770/cc770.c 		cf->data[6] = cc770_read_reg(priv, tx_error_counter);
cf                516 drivers/net/can/cc770/cc770.c 		cf->data[7] = cc770_read_reg(priv, rx_error_counter);
cf                522 drivers/net/can/cc770/cc770.c 		cf->can_id |= CAN_ERR_BUSOFF;
cf                527 drivers/net/can/cc770/cc770.c 		cf->can_id |= CAN_ERR_CRTL;
cf                529 drivers/net/can/cc770/cc770.c 		if (cf->data[7] > 127) {
cf                530 drivers/net/can/cc770/cc770.c 			cf->data[1] = CAN_ERR_CRTL_RX_PASSIVE |
cf                535 drivers/net/can/cc770/cc770.c 			cf->data[1] = CAN_ERR_CRTL_RX_WARNING |
cf                542 drivers/net/can/cc770/cc770.c 		cf->can_id |= CAN_ERR_PROT;
cf                543 drivers/net/can/cc770/cc770.c 		cf->data[2] = CAN_ERR_PROT_ACTIVE;
cf                550 drivers/net/can/cc770/cc770.c 			cf->can_id |= CAN_ERR_ACK;
cf                552 drivers/net/can/cc770/cc770.c 			cf->can_id |= CAN_ERR_PROT;
cf                555 drivers/net/can/cc770/cc770.c 				cf->data[2] |= CAN_ERR_PROT_STUFF;
cf                558 drivers/net/can/cc770/cc770.c 				cf->data[2] |= CAN_ERR_PROT_FORM;
cf                561 drivers/net/can/cc770/cc770.c 				cf->data[2] |= CAN_ERR_PROT_BIT1;
cf                564 drivers/net/can/cc770/cc770.c 				cf->data[2] |= CAN_ERR_PROT_BIT0;
cf                567 drivers/net/can/cc770/cc770.c 				cf->data[3] = CAN_ERR_PROT_LOC_CRC_SEQ;
cf                575 drivers/net/can/cc770/cc770.c 	stats->rx_bytes += cf->can_dlc;
cf                669 drivers/net/can/cc770/cc770.c 	struct can_frame *cf;
cf                701 drivers/net/can/cc770/cc770.c 	cf = (struct can_frame *)priv->tx_skb->data;
cf                702 drivers/net/can/cc770/cc770.c 	stats->tx_bytes += cf->can_dlc;
cf                374 drivers/net/can/dev.c void can_change_state(struct net_device *dev, struct can_frame *cf,
cf                390 drivers/net/can/dev.c 	if (!cf)
cf                394 drivers/net/can/dev.c 		cf->can_id |= CAN_ERR_BUSOFF;
cf                398 drivers/net/can/dev.c 	cf->can_id |= CAN_ERR_CRTL;
cf                399 drivers/net/can/dev.c 	cf->data[1] |= tx_state >= rx_state ?
cf                401 drivers/net/can/dev.c 	cf->data[1] |= tx_state <= rx_state ?
cf                488 drivers/net/can/dev.c 		struct canfd_frame *cf = (struct canfd_frame *)skb->data;
cf                489 drivers/net/can/dev.c 		u8 len = cf->len;
cf                544 drivers/net/can/dev.c 	struct can_frame *cf;
cf                555 drivers/net/can/dev.c 	skb = alloc_can_err_skb(dev, &cf);
cf                560 drivers/net/can/dev.c 	cf->can_id |= CAN_ERR_RESTARTED;
cf                565 drivers/net/can/dev.c 	stats->rx_bytes += cf->can_dlc;
cf                639 drivers/net/can/dev.c struct sk_buff *alloc_can_skb(struct net_device *dev, struct can_frame **cf)
cf                660 drivers/net/can/dev.c 	*cf = skb_put_zero(skb, sizeof(struct can_frame));
cf                694 drivers/net/can/dev.c struct sk_buff *alloc_can_err_skb(struct net_device *dev, struct can_frame **cf)
cf                698 drivers/net/can/dev.c 	skb = alloc_can_skb(dev, cf);
cf                702 drivers/net/can/dev.c 	(*cf)->can_id = CAN_ERR_FLAG;
cf                703 drivers/net/can/dev.c 	(*cf)->can_dlc = CAN_ERR_DLC;
cf                631 drivers/net/can/flexcan.c 	struct can_frame *cf = (struct can_frame *)skb->data;
cf                634 drivers/net/can/flexcan.c 	u32 ctrl = FLEXCAN_MB_CODE_TX_DATA | (cf->can_dlc << 16);
cf                642 drivers/net/can/flexcan.c 	if (cf->can_id & CAN_EFF_FLAG) {
cf                643 drivers/net/can/flexcan.c 		can_id = cf->can_id & CAN_EFF_MASK;
cf                646 drivers/net/can/flexcan.c 		can_id = (cf->can_id & CAN_SFF_MASK) << 18;
cf                649 drivers/net/can/flexcan.c 	if (cf->can_id & CAN_RTR_FLAG)
cf                652 drivers/net/can/flexcan.c 	for (i = 0; i < cf->can_dlc; i += sizeof(u32)) {
cf                653 drivers/net/can/flexcan.c 		data = be32_to_cpup((__be32 *)&cf->data[i]);
cf                678 drivers/net/can/flexcan.c 	struct can_frame *cf;
cf                685 drivers/net/can/flexcan.c 	skb = alloc_can_err_skb(dev, &cf);
cf                689 drivers/net/can/flexcan.c 	cf->can_id |= CAN_ERR_PROT | CAN_ERR_BUSERROR;
cf                693 drivers/net/can/flexcan.c 		cf->data[2] |= CAN_ERR_PROT_BIT1;
cf                698 drivers/net/can/flexcan.c 		cf->data[2] |= CAN_ERR_PROT_BIT0;
cf                703 drivers/net/can/flexcan.c 		cf->can_id |= CAN_ERR_ACK;
cf                704 drivers/net/can/flexcan.c 		cf->data[3] = CAN_ERR_PROT_LOC_ACK;
cf                709 drivers/net/can/flexcan.c 		cf->data[2] |= CAN_ERR_PROT_BIT;
cf                710 drivers/net/can/flexcan.c 		cf->data[3] = CAN_ERR_PROT_LOC_CRC_SEQ;
cf                715 drivers/net/can/flexcan.c 		cf->data[2] |= CAN_ERR_PROT_FORM;
cf                720 drivers/net/can/flexcan.c 		cf->data[2] |= CAN_ERR_PROT_STUFF;
cf                740 drivers/net/can/flexcan.c 	struct can_frame *cf;
cf                768 drivers/net/can/flexcan.c 	skb = alloc_can_err_skb(dev, &cf);
cf                772 drivers/net/can/flexcan.c 	can_change_state(dev, cf, tx_state, rx_state);
cf                788 drivers/net/can/flexcan.c 					 struct can_frame *cf,
cf                830 drivers/net/can/flexcan.c 		cf->can_id = ((reg_id >> 0) & CAN_EFF_MASK) | CAN_EFF_FLAG;
cf                832 drivers/net/can/flexcan.c 		cf->can_id = (reg_id >> 18) & CAN_SFF_MASK;
cf                835 drivers/net/can/flexcan.c 		cf->can_id |= CAN_RTR_FLAG;
cf                836 drivers/net/can/flexcan.c 	cf->can_dlc = get_can_dlc((reg_ctrl >> 16) & 0xf);
cf                838 drivers/net/can/flexcan.c 	for (i = 0; i < cf->can_dlc; i += sizeof(u32)) {
cf                840 drivers/net/can/flexcan.c 		*(__be32 *)(cf->data + i) = data;
cf                578 drivers/net/can/grcan.c 	struct can_frame cf;
cf                581 drivers/net/can/grcan.c 	memset(&cf, 0, sizeof(cf));
cf                642 drivers/net/can/grcan.c 				cf.can_id |= CAN_ERR_BUSOFF;
cf                649 drivers/net/can/grcan.c 				cf.can_id |= CAN_ERR_CRTL;
cf                651 drivers/net/can/grcan.c 					cf.data[1] |= CAN_ERR_CRTL_TX_PASSIVE;
cf                653 drivers/net/can/grcan.c 					cf.data[1] |= CAN_ERR_CRTL_RX_PASSIVE;
cf                660 drivers/net/can/grcan.c 				cf.can_id |= CAN_ERR_CRTL;
cf                662 drivers/net/can/grcan.c 					cf.data[1] |= CAN_ERR_CRTL_TX_WARNING;
cf                664 drivers/net/can/grcan.c 					cf.data[1] |= CAN_ERR_CRTL_RX_WARNING;
cf                669 drivers/net/can/grcan.c 				cf.can_id |= CAN_ERR_CRTL;
cf                676 drivers/net/can/grcan.c 			cf.data[6] = txerr;
cf                677 drivers/net/can/grcan.c 			cf.data[7] = rxerr;
cf                685 drivers/net/can/grcan.c 			cf.can_id |= CAN_ERR_RESTARTED;
cf                710 drivers/net/can/grcan.c 		cf.can_id |= CAN_ERR_CRTL;
cf                711 drivers/net/can/grcan.c 		cf.data[1] |= CAN_ERR_CRTL_RX_OVERFLOW;
cf                746 drivers/net/can/grcan.c 	if (cf.can_id) {
cf                754 drivers/net/can/grcan.c 		skb_cf->can_id |= cf.can_id;
cf                755 drivers/net/can/grcan.c 		memcpy(skb_cf->data, cf.data, sizeof(cf.data));
cf               1169 drivers/net/can/grcan.c 	struct can_frame *cf;
cf               1185 drivers/net/can/grcan.c 		skb = alloc_can_skb(dev, &cf);
cf               1197 drivers/net/can/grcan.c 			cf->can_id = ((slot[0] & GRCAN_MSG_EID)
cf               1199 drivers/net/can/grcan.c 			cf->can_id |= CAN_EFF_FLAG;
cf               1201 drivers/net/can/grcan.c 			cf->can_id = ((slot[0] & GRCAN_MSG_BID)
cf               1204 drivers/net/can/grcan.c 		cf->can_dlc = get_can_dlc((slot[1] & GRCAN_MSG_DLC)
cf               1207 drivers/net/can/grcan.c 			cf->can_id |= CAN_RTR_FLAG;
cf               1209 drivers/net/can/grcan.c 			for (i = 0; i < cf->can_dlc; i++) {
cf               1212 drivers/net/can/grcan.c 				cf->data[i] = (u8)(slot[j] >> shift);
cf               1218 drivers/net/can/grcan.c 		stats->rx_bytes += cf->can_dlc;
cf               1354 drivers/net/can/grcan.c 	struct can_frame *cf = (struct can_frame *)skb->data;
cf               1399 drivers/net/can/grcan.c 	eff = cf->can_id & CAN_EFF_FLAG;
cf               1400 drivers/net/can/grcan.c 	rtr = cf->can_id & CAN_RTR_FLAG;
cf               1401 drivers/net/can/grcan.c 	id = cf->can_id & (eff ? CAN_EFF_MASK : CAN_SFF_MASK);
cf               1402 drivers/net/can/grcan.c 	dlc = cf->can_dlc;
cf               1415 drivers/net/can/grcan.c 		slot[j] |= cf->data[i] << shift;
cf               1450 drivers/net/can/grcan.c 	priv->txdlc[slotindex] = cf->can_dlc; /* Store dlc for statistics */
cf                252 drivers/net/can/ifi_canfd/ifi_canfd.c 	struct canfd_frame *cf;
cf                262 drivers/net/can/ifi_canfd/ifi_canfd.c 		skb = alloc_canfd_skb(ndev, &cf);
cf                264 drivers/net/can/ifi_canfd/ifi_canfd.c 		skb = alloc_can_skb(ndev, (struct can_frame **)&cf);
cf                274 drivers/net/can/ifi_canfd/ifi_canfd.c 		cf->len = can_dlc2len(dlc);
cf                276 drivers/net/can/ifi_canfd/ifi_canfd.c 		cf->len = get_can_dlc(dlc);
cf                294 drivers/net/can/ifi_canfd/ifi_canfd.c 	cf->can_id = id;
cf                297 drivers/net/can/ifi_canfd/ifi_canfd.c 		cf->flags |= CANFD_ESI;
cf                303 drivers/net/can/ifi_canfd/ifi_canfd.c 		cf->can_id |= CAN_RTR_FLAG;
cf                306 drivers/net/can/ifi_canfd/ifi_canfd.c 			cf->flags |= CANFD_BRS;
cf                308 drivers/net/can/ifi_canfd/ifi_canfd.c 		for (i = 0; i < cf->len; i += 4) {
cf                309 drivers/net/can/ifi_canfd/ifi_canfd.c 			*(u32 *)(cf->data + i) =
cf                319 drivers/net/can/ifi_canfd/ifi_canfd.c 	stats->rx_bytes += cf->len;
cf                381 drivers/net/can/ifi_canfd/ifi_canfd.c 	struct can_frame *cf;
cf                399 drivers/net/can/ifi_canfd/ifi_canfd.c 	skb = alloc_can_err_skb(ndev, &cf);
cf                404 drivers/net/can/ifi_canfd/ifi_canfd.c 	cf->can_id |= CAN_ERR_PROT | CAN_ERR_BUSERROR;
cf                407 drivers/net/can/ifi_canfd/ifi_canfd.c 		cf->data[2] |= CAN_ERR_PROT_OVERLOAD;
cf                410 drivers/net/can/ifi_canfd/ifi_canfd.c 		cf->data[3] = CAN_ERR_PROT_LOC_ACK;
cf                413 drivers/net/can/ifi_canfd/ifi_canfd.c 		cf->data[2] |= CAN_ERR_PROT_BIT0;
cf                416 drivers/net/can/ifi_canfd/ifi_canfd.c 		cf->data[2] |= CAN_ERR_PROT_BIT1;
cf                419 drivers/net/can/ifi_canfd/ifi_canfd.c 		cf->data[2] |= CAN_ERR_PROT_STUFF;
cf                422 drivers/net/can/ifi_canfd/ifi_canfd.c 		cf->data[3] = CAN_ERR_PROT_LOC_CRC_SEQ;
cf                425 drivers/net/can/ifi_canfd/ifi_canfd.c 		cf->data[2] |= CAN_ERR_PROT_FORM;
cf                434 drivers/net/can/ifi_canfd/ifi_canfd.c 	stats->rx_bytes += cf->can_dlc;
cf                460 drivers/net/can/ifi_canfd/ifi_canfd.c 	struct can_frame *cf;
cf                492 drivers/net/can/ifi_canfd/ifi_canfd.c 	skb = alloc_can_err_skb(ndev, &cf);
cf                501 drivers/net/can/ifi_canfd/ifi_canfd.c 		cf->can_id |= CAN_ERR_CRTL;
cf                502 drivers/net/can/ifi_canfd/ifi_canfd.c 		cf->data[1] = (bec.txerr > bec.rxerr) ?
cf                505 drivers/net/can/ifi_canfd/ifi_canfd.c 		cf->data[6] = bec.txerr;
cf                506 drivers/net/can/ifi_canfd/ifi_canfd.c 		cf->data[7] = bec.rxerr;
cf                510 drivers/net/can/ifi_canfd/ifi_canfd.c 		cf->can_id |= CAN_ERR_CRTL;
cf                511 drivers/net/can/ifi_canfd/ifi_canfd.c 		cf->data[1] |= CAN_ERR_CRTL_RX_PASSIVE;
cf                513 drivers/net/can/ifi_canfd/ifi_canfd.c 			cf->data[1] |= CAN_ERR_CRTL_TX_PASSIVE;
cf                514 drivers/net/can/ifi_canfd/ifi_canfd.c 		cf->data[6] = bec.txerr;
cf                515 drivers/net/can/ifi_canfd/ifi_canfd.c 		cf->data[7] = bec.rxerr;
cf                519 drivers/net/can/ifi_canfd/ifi_canfd.c 		cf->can_id |= CAN_ERR_BUSOFF;
cf                526 drivers/net/can/ifi_canfd/ifi_canfd.c 	stats->rx_bytes += cf->can_dlc;
cf                870 drivers/net/can/ifi_canfd/ifi_canfd.c 	struct canfd_frame *cf = (struct canfd_frame *)skb->data;
cf                887 drivers/net/can/ifi_canfd/ifi_canfd.c 	if (cf->can_id & CAN_EFF_FLAG) {
cf                888 drivers/net/can/ifi_canfd/ifi_canfd.c 		txid = cf->can_id & CAN_EFF_MASK;
cf                900 drivers/net/can/ifi_canfd/ifi_canfd.c 		txid = cf->can_id & CAN_SFF_MASK;
cf                903 drivers/net/can/ifi_canfd/ifi_canfd.c 	txdlc = can_len2dlc(cf->len);
cf                906 drivers/net/can/ifi_canfd/ifi_canfd.c 		if (cf->flags & CANFD_BRS)
cf                910 drivers/net/can/ifi_canfd/ifi_canfd.c 	if (cf->can_id & CAN_RTR_FLAG)
cf                917 drivers/net/can/ifi_canfd/ifi_canfd.c 	for (i = 0; i < cf->len; i += 4) {
cf                918 drivers/net/can/ifi_canfd/ifi_canfd.c 		writel(*(u32 *)(cf->data + i),
cf                911 drivers/net/can/janz-ican3.c 			       struct can_frame *cf)
cf                915 drivers/net/can/janz-ican3.c 			cf->can_id |= CAN_RTR_FLAG;
cf                917 drivers/net/can/janz-ican3.c 		cf->can_id |= desc->data[0] << 3;
cf                918 drivers/net/can/janz-ican3.c 		cf->can_id |= (desc->data[1] & 0xe0) >> 5;
cf                919 drivers/net/can/janz-ican3.c 		cf->can_dlc = get_can_dlc(desc->data[1] & ICAN3_CAN_DLC_MASK);
cf                920 drivers/net/can/janz-ican3.c 		memcpy(cf->data, &desc->data[2], cf->can_dlc);
cf                922 drivers/net/can/janz-ican3.c 		cf->can_dlc = get_can_dlc(desc->data[0] & ICAN3_CAN_DLC_MASK);
cf                924 drivers/net/can/janz-ican3.c 			cf->can_id |= CAN_RTR_FLAG;
cf                927 drivers/net/can/janz-ican3.c 			cf->can_id |= CAN_EFF_FLAG;
cf                928 drivers/net/can/janz-ican3.c 			cf->can_id |= desc->data[2] << 21; /* 28-21 */
cf                929 drivers/net/can/janz-ican3.c 			cf->can_id |= desc->data[3] << 13; /* 20-13 */
cf                930 drivers/net/can/janz-ican3.c 			cf->can_id |= desc->data[4] << 5;  /* 12-5  */
cf                931 drivers/net/can/janz-ican3.c 			cf->can_id |= (desc->data[5] & 0xf8) >> 3;
cf                933 drivers/net/can/janz-ican3.c 			cf->can_id |= desc->data[2] << 3;  /* 10-3  */
cf                934 drivers/net/can/janz-ican3.c 			cf->can_id |= desc->data[3] >> 5;  /* 2-0   */
cf                937 drivers/net/can/janz-ican3.c 		memcpy(cf->data, &desc->data[6], cf->can_dlc);
cf                942 drivers/net/can/janz-ican3.c 			       struct can_frame *cf,
cf                950 drivers/net/can/janz-ican3.c 	desc->data[0] |= cf->can_dlc;
cf                957 drivers/net/can/janz-ican3.c 	if (cf->can_id & CAN_RTR_FLAG)
cf                961 drivers/net/can/janz-ican3.c 	if (cf->can_id & CAN_EFF_FLAG) {
cf                963 drivers/net/can/janz-ican3.c 		desc->data[2] = (cf->can_id & 0x1fe00000) >> 21; /* 28-21 */
cf                964 drivers/net/can/janz-ican3.c 		desc->data[3] = (cf->can_id & 0x001fe000) >> 13; /* 20-13 */
cf                965 drivers/net/can/janz-ican3.c 		desc->data[4] = (cf->can_id & 0x00001fe0) >> 5;  /* 12-5  */
cf                966 drivers/net/can/janz-ican3.c 		desc->data[5] = (cf->can_id & 0x0000001f) << 3;  /* 4-0   */
cf                968 drivers/net/can/janz-ican3.c 		desc->data[2] = (cf->can_id & 0x7F8) >> 3; /* bits 10-3 */
cf                969 drivers/net/can/janz-ican3.c 		desc->data[3] = (cf->can_id & 0x007) << 5; /* bits 2-0  */
cf                973 drivers/net/can/janz-ican3.c 	memcpy(&desc->data[6], cf->data, cf->can_dlc);
cf                994 drivers/net/can/janz-ican3.c 	struct can_frame *cf;
cf               1015 drivers/net/can/janz-ican3.c 	skb = alloc_can_err_skb(dev, &cf);
cf               1017 drivers/net/can/janz-ican3.c 		cf->can_id |= CAN_ERR_CRTL;
cf               1018 drivers/net/can/janz-ican3.c 		cf->data[1] = CAN_ERR_CRTL_RX_OVERFLOW;
cf               1038 drivers/net/can/janz-ican3.c 	struct can_frame *cf;
cf               1096 drivers/net/can/janz-ican3.c 	skb = alloc_can_err_skb(dev, &cf);
cf               1103 drivers/net/can/janz-ican3.c 		cf->can_id |= CAN_ERR_CRTL;
cf               1104 drivers/net/can/janz-ican3.c 		cf->data[1] = CAN_ERR_CRTL_RX_OVERFLOW;
cf               1114 drivers/net/can/janz-ican3.c 			cf->can_id |= CAN_ERR_BUSOFF;
cf               1130 drivers/net/can/janz-ican3.c 		cf->can_id |= CAN_ERR_PROT | CAN_ERR_BUSERROR;
cf               1134 drivers/net/can/janz-ican3.c 			cf->data[2] |= CAN_ERR_PROT_BIT;
cf               1137 drivers/net/can/janz-ican3.c 			cf->data[2] |= CAN_ERR_PROT_FORM;
cf               1140 drivers/net/can/janz-ican3.c 			cf->data[2] |= CAN_ERR_PROT_STUFF;
cf               1143 drivers/net/can/janz-ican3.c 			cf->data[3] = ecc & ECC_SEG;
cf               1148 drivers/net/can/janz-ican3.c 			cf->data[2] |= CAN_ERR_PROT_TX;
cf               1150 drivers/net/can/janz-ican3.c 		cf->data[6] = txerr;
cf               1151 drivers/net/can/janz-ican3.c 		cf->data[7] = rxerr;
cf               1156 drivers/net/can/janz-ican3.c 		cf->can_id |= CAN_ERR_CRTL;
cf               1159 drivers/net/can/janz-ican3.c 			cf->data[1] = (txerr > rxerr) ?
cf               1164 drivers/net/can/janz-ican3.c 			cf->data[1] = (txerr > rxerr) ?
cf               1169 drivers/net/can/janz-ican3.c 		cf->data[6] = txerr;
cf               1170 drivers/net/can/janz-ican3.c 		cf->data[7] = rxerr;
cf               1287 drivers/net/can/janz-ican3.c 	struct can_frame *cf;
cf               1296 drivers/net/can/janz-ican3.c 	cf = (struct can_frame *)skb->data;
cf               1297 drivers/net/can/janz-ican3.c 	dlc = cf->can_dlc;
cf               1324 drivers/net/can/janz-ican3.c 	struct can_frame *cf = (struct can_frame *)skb->data;
cf               1332 drivers/net/can/janz-ican3.c 	if (cf->can_id != echo_cf->can_id)
cf               1335 drivers/net/can/janz-ican3.c 	if (cf->can_dlc != echo_cf->can_dlc)
cf               1338 drivers/net/can/janz-ican3.c 	return memcmp(cf->data, echo_cf->data, cf->can_dlc) == 0;
cf               1378 drivers/net/can/janz-ican3.c 	struct can_frame *cf;
cf               1396 drivers/net/can/janz-ican3.c 	skb = alloc_can_skb(ndev, &cf);
cf               1403 drivers/net/can/janz-ican3.c 	ican3_to_can_frame(mod, &desc, cf);
cf               1424 drivers/net/can/janz-ican3.c 	stats->rx_bytes += cf->can_dlc;
cf               1686 drivers/net/can/janz-ican3.c 	struct can_frame *cf = (struct can_frame *)skb->data;
cf               1710 drivers/net/can/janz-ican3.c 	can_frame_to_ican3(mod, cf, &desc);
cf                727 drivers/net/can/kvaser_pciefd.c 	struct canfd_frame *cf = (struct canfd_frame *)skb->data;
cf                736 drivers/net/can/kvaser_pciefd.c 	if (cf->can_id & CAN_RTR_FLAG)
cf                739 drivers/net/can/kvaser_pciefd.c 	if (cf->can_id & CAN_EFF_FLAG)
cf                742 drivers/net/can/kvaser_pciefd.c 	p->header[0] |= cf->can_id & CAN_EFF_MASK;
cf                743 drivers/net/can/kvaser_pciefd.c 	p->header[1] |= can_len2dlc(cf->len) << KVASER_PCIEFD_RPACKET_DLC_SHIFT;
cf                748 drivers/net/can/kvaser_pciefd.c 		if (cf->flags & CANFD_BRS)
cf                750 drivers/net/can/kvaser_pciefd.c 		if (cf->flags & CANFD_ESI)
cf                756 drivers/net/can/kvaser_pciefd.c 	packet_size = cf->len;
cf                757 drivers/net/can/kvaser_pciefd.c 	memcpy(p->data, cf->data, packet_size);
cf               1141 drivers/net/can/kvaser_pciefd.c 	struct canfd_frame *cf;
cf               1154 drivers/net/can/kvaser_pciefd.c 		skb = alloc_canfd_skb(priv->dev, &cf);
cf               1161 drivers/net/can/kvaser_pciefd.c 			cf->flags |= CANFD_BRS;
cf               1164 drivers/net/can/kvaser_pciefd.c 			cf->flags |= CANFD_ESI;
cf               1166 drivers/net/can/kvaser_pciefd.c 		skb = alloc_can_skb(priv->dev, (struct can_frame **)&cf);
cf               1173 drivers/net/can/kvaser_pciefd.c 	cf->can_id = p->header[0] & CAN_EFF_MASK;
cf               1175 drivers/net/can/kvaser_pciefd.c 		cf->can_id |= CAN_EFF_FLAG;
cf               1177 drivers/net/can/kvaser_pciefd.c 	cf->len = can_dlc2len(p->header[1] >> KVASER_PCIEFD_RPACKET_DLC_SHIFT);
cf               1180 drivers/net/can/kvaser_pciefd.c 		cf->can_id |= CAN_RTR_FLAG;
cf               1182 drivers/net/can/kvaser_pciefd.c 		memcpy(cf->data, data, cf->len);
cf               1190 drivers/net/can/kvaser_pciefd.c 	stats->rx_bytes += cf->len;
cf               1197 drivers/net/can/kvaser_pciefd.c 				       struct can_frame *cf,
cf               1202 drivers/net/can/kvaser_pciefd.c 	can_change_state(can->can.dev, cf, tx_state, rx_state);
cf               1253 drivers/net/can/kvaser_pciefd.c 	struct can_frame *cf = NULL;
cf               1265 drivers/net/can/kvaser_pciefd.c 	skb = alloc_can_err_skb(ndev, &cf);
cf               1268 drivers/net/can/kvaser_pciefd.c 		kvaser_pciefd_change_state(can, cf, new_state, tx_state,
cf               1276 drivers/net/can/kvaser_pciefd.c 				cf->can_id |= CAN_ERR_RESTARTED;
cf               1296 drivers/net/can/kvaser_pciefd.c 	cf->can_id |= CAN_ERR_BUSERROR;
cf               1298 drivers/net/can/kvaser_pciefd.c 	cf->data[6] = bec.txerr;
cf               1299 drivers/net/can/kvaser_pciefd.c 	cf->data[7] = bec.rxerr;
cf               1302 drivers/net/can/kvaser_pciefd.c 	stats->rx_bytes += cf->can_dlc;
cf               1345 drivers/net/can/kvaser_pciefd.c 		struct can_frame *cf;
cf               1348 drivers/net/can/kvaser_pciefd.c 		skb = alloc_can_err_skb(ndev, &cf);
cf               1356 drivers/net/can/kvaser_pciefd.c 		kvaser_pciefd_change_state(can, cf, new_state, tx_state,
cf               1363 drivers/net/can/kvaser_pciefd.c 			cf->can_id |= CAN_ERR_RESTARTED;
cf               1371 drivers/net/can/kvaser_pciefd.c 		cf->data[6] = bec.txerr;
cf               1372 drivers/net/can/kvaser_pciefd.c 		cf->data[7] = bec.rxerr;
cf               1486 drivers/net/can/kvaser_pciefd.c 	struct can_frame *cf;
cf               1488 drivers/net/can/kvaser_pciefd.c 	skb = alloc_can_err_skb(can->can.dev, &cf);
cf               1493 drivers/net/can/kvaser_pciefd.c 			cf->can_id |= CAN_ERR_LOSTARB;
cf               1496 drivers/net/can/kvaser_pciefd.c 		cf->can_id |= CAN_ERR_ACK;
cf               1500 drivers/net/can/kvaser_pciefd.c 		cf->can_id |= CAN_ERR_BUSERROR;
cf               1501 drivers/net/can/kvaser_pciefd.c 		stats->rx_bytes += cf->can_dlc;
cf                441 drivers/net/can/m_can/m_can.c 	struct canfd_frame *cf;
cf                450 drivers/net/can/m_can/m_can.c 		skb = alloc_canfd_skb(dev, &cf);
cf                452 drivers/net/can/m_can/m_can.c 		skb = alloc_can_skb(dev, (struct can_frame **)&cf);
cf                459 drivers/net/can/m_can/m_can.c 		cf->len = can_dlc2len((dlc >> 16) & 0x0F);
cf                461 drivers/net/can/m_can/m_can.c 		cf->len = get_can_dlc((dlc >> 16) & 0x0F);
cf                465 drivers/net/can/m_can/m_can.c 		cf->can_id = (id & CAN_EFF_MASK) | CAN_EFF_FLAG;
cf                467 drivers/net/can/m_can/m_can.c 		cf->can_id = (id >> 18) & CAN_SFF_MASK;
cf                470 drivers/net/can/m_can/m_can.c 		cf->flags |= CANFD_ESI;
cf                475 drivers/net/can/m_can/m_can.c 		cf->can_id |= CAN_RTR_FLAG;
cf                478 drivers/net/can/m_can/m_can.c 			cf->flags |= CANFD_BRS;
cf                480 drivers/net/can/m_can/m_can.c 		for (i = 0; i < cf->len; i += 4)
cf                481 drivers/net/can/m_can/m_can.c 			*(u32 *)(cf->data + i) =
cf                490 drivers/net/can/m_can/m_can.c 	stats->rx_bytes += cf->len;
cf                552 drivers/net/can/m_can/m_can.c 	struct can_frame *cf;
cf                559 drivers/net/can/m_can/m_can.c 	skb = alloc_can_err_skb(dev, &cf);
cf                566 drivers/net/can/m_can/m_can.c 	cf->can_id |= CAN_ERR_PROT | CAN_ERR_BUSERROR;
cf                571 drivers/net/can/m_can/m_can.c 		cf->data[2] |= CAN_ERR_PROT_STUFF;
cf                575 drivers/net/can/m_can/m_can.c 		cf->data[2] |= CAN_ERR_PROT_FORM;
cf                579 drivers/net/can/m_can/m_can.c 		cf->data[3] = CAN_ERR_PROT_LOC_ACK;
cf                583 drivers/net/can/m_can/m_can.c 		cf->data[2] |= CAN_ERR_PROT_BIT1;
cf                587 drivers/net/can/m_can/m_can.c 		cf->data[2] |= CAN_ERR_PROT_BIT0;
cf                591 drivers/net/can/m_can/m_can.c 		cf->data[3] = CAN_ERR_PROT_LOC_CRC_SEQ;
cf                598 drivers/net/can/m_can/m_can.c 	stats->rx_bytes += cf->can_dlc;
cf                661 drivers/net/can/m_can/m_can.c 	struct can_frame *cf;
cf                689 drivers/net/can/m_can/m_can.c 	skb = alloc_can_err_skb(dev, &cf);
cf                698 drivers/net/can/m_can/m_can.c 		cf->can_id |= CAN_ERR_CRTL;
cf                699 drivers/net/can/m_can/m_can.c 		cf->data[1] = (bec.txerr > bec.rxerr) ?
cf                702 drivers/net/can/m_can/m_can.c 		cf->data[6] = bec.txerr;
cf                703 drivers/net/can/m_can/m_can.c 		cf->data[7] = bec.rxerr;
cf                707 drivers/net/can/m_can/m_can.c 		cf->can_id |= CAN_ERR_CRTL;
cf                710 drivers/net/can/m_can/m_can.c 			cf->data[1] |= CAN_ERR_CRTL_RX_PASSIVE;
cf                712 drivers/net/can/m_can/m_can.c 			cf->data[1] |= CAN_ERR_CRTL_TX_PASSIVE;
cf                713 drivers/net/can/m_can/m_can.c 		cf->data[6] = bec.txerr;
cf                714 drivers/net/can/m_can/m_can.c 		cf->data[7] = bec.rxerr;
cf                718 drivers/net/can/m_can/m_can.c 		cf->can_id |= CAN_ERR_BUSOFF;
cf                725 drivers/net/can/m_can/m_can.c 	stats->rx_bytes += cf->can_dlc;
cf               1414 drivers/net/can/m_can/m_can.c 	struct canfd_frame *cf = (struct canfd_frame *)cdev->tx_skb->data;
cf               1423 drivers/net/can/m_can/m_can.c 	if (cf->can_id & CAN_EFF_FLAG) {
cf               1424 drivers/net/can/m_can/m_can.c 		id = cf->can_id & CAN_EFF_MASK;
cf               1427 drivers/net/can/m_can/m_can.c 		id = ((cf->can_id & CAN_SFF_MASK) << 18);
cf               1430 drivers/net/can/m_can/m_can.c 	if (cf->can_id & CAN_RTR_FLAG)
cf               1439 drivers/net/can/m_can/m_can.c 				 can_len2dlc(cf->len) << 16);
cf               1441 drivers/net/can/m_can/m_can.c 		for (i = 0; i < cf->len; i += 4)
cf               1444 drivers/net/can/m_can/m_can.c 					 *(u32 *)(cf->data + i));
cf               1452 drivers/net/can/m_can/m_can.c 				if (cf->flags & CANFD_BRS)
cf               1495 drivers/net/can/m_can/m_can.c 			if (cf->flags & CANFD_BRS)
cf               1507 drivers/net/can/m_can/m_can.c 				 (can_len2dlc(cf->len) << 16) |
cf               1510 drivers/net/can/m_can/m_can.c 		for (i = 0; i < cf->len; i += 4)
cf               1512 drivers/net/can/m_can/m_can.c 					 *(u32 *)(cf->data + i));
cf                483 drivers/net/can/pch_can.c 	struct can_frame *cf;
cf                488 drivers/net/can/pch_can.c 	skb = alloc_can_err_skb(ndev, &cf);
cf                496 drivers/net/can/pch_can.c 		cf->can_id |= CAN_ERR_BUSOFF;
cf                506 drivers/net/can/pch_can.c 		cf->can_id |= CAN_ERR_CRTL;
cf                508 drivers/net/can/pch_can.c 			cf->data[1] |= CAN_ERR_CRTL_RX_WARNING;
cf                510 drivers/net/can/pch_can.c 			cf->data[1] |= CAN_ERR_CRTL_TX_WARNING;
cf                518 drivers/net/can/pch_can.c 		cf->can_id |= CAN_ERR_CRTL;
cf                520 drivers/net/can/pch_can.c 			cf->data[1] |= CAN_ERR_CRTL_RX_PASSIVE;
cf                522 drivers/net/can/pch_can.c 			cf->data[1] |= CAN_ERR_CRTL_TX_PASSIVE;
cf                530 drivers/net/can/pch_can.c 		cf->data[2] |= CAN_ERR_PROT_STUFF;
cf                535 drivers/net/can/pch_can.c 		cf->data[2] |= CAN_ERR_PROT_FORM;
cf                540 drivers/net/can/pch_can.c 		cf->can_id |= CAN_ERR_ACK;
cf                546 drivers/net/can/pch_can.c 		cf->data[2] |= CAN_ERR_PROT_BIT;
cf                551 drivers/net/can/pch_can.c 		cf->data[3] = CAN_ERR_PROT_LOC_CRC_SEQ;
cf                559 drivers/net/can/pch_can.c 	cf->data[6] = errc & PCH_TEC;
cf                560 drivers/net/can/pch_can.c 	cf->data[7] = (errc & PCH_REC) >> 8;
cf                566 drivers/net/can/pch_can.c 	stats->rx_bytes += cf->can_dlc;
cf                609 drivers/net/can/pch_can.c 	struct can_frame *cf;
cf                618 drivers/net/can/pch_can.c 	skb = alloc_can_err_skb(ndev, &cf);
cf                622 drivers/net/can/pch_can.c 	cf->can_id |= CAN_ERR_CRTL;
cf                623 drivers/net/can/pch_can.c 	cf->data[1] = CAN_ERR_CRTL_RX_OVERFLOW;
cf                636 drivers/net/can/pch_can.c 	struct can_frame *cf;
cf                666 drivers/net/can/pch_can.c 		skb = alloc_can_skb(priv->ndev, &cf);
cf                677 drivers/net/can/pch_can.c 			cf->can_id = id | CAN_EFF_FLAG;
cf                680 drivers/net/can/pch_can.c 			cf->can_id = id;
cf                684 drivers/net/can/pch_can.c 			cf->can_id |= CAN_RTR_FLAG;
cf                686 drivers/net/can/pch_can.c 		cf->can_dlc = get_can_dlc((ioread32(&priv->regs->
cf                689 drivers/net/can/pch_can.c 		for (i = 0; i < cf->can_dlc; i += 2) {
cf                691 drivers/net/can/pch_can.c 			cf->data[i] = data_reg;
cf                692 drivers/net/can/pch_can.c 			cf->data[i + 1] = data_reg >> 8;
cf                699 drivers/net/can/pch_can.c 		stats->rx_bytes += cf->can_dlc;
cf                883 drivers/net/can/pch_can.c 	struct can_frame *cf = (struct can_frame *)skb->data;
cf                905 drivers/net/can/pch_can.c 	if (cf->can_id & CAN_EFF_FLAG) {
cf                906 drivers/net/can/pch_can.c 		iowrite32(cf->can_id & 0xffff, &priv->regs->ifregs[1].id1);
cf                907 drivers/net/can/pch_can.c 		id2 = ((cf->can_id >> 16) & 0x1fff) | PCH_ID2_XTD;
cf                910 drivers/net/can/pch_can.c 		id2 = (cf->can_id & CAN_SFF_MASK) << 2;
cf                916 drivers/net/can/pch_can.c 	if (!(cf->can_id & CAN_RTR_FLAG))
cf                922 drivers/net/can/pch_can.c 	for (i = 0; i < cf->can_dlc; i += 2) {
cf                923 drivers/net/can/pch_can.c 		iowrite16(cf->data[i] | (cf->data[i + 1] << 8),
cf                930 drivers/net/can/pch_can.c 	iowrite32(cf->can_dlc | PCH_IF_MCONT_NEWDAT | PCH_IF_MCONT_TXRQXT |
cf                240 drivers/net/can/peak_canfd/peak_canfd.c 	struct canfd_frame *cf;
cf                272 drivers/net/can/peak_canfd/peak_canfd.c 		skb = alloc_canfd_skb(priv->ndev, &cf);
cf                277 drivers/net/can/peak_canfd/peak_canfd.c 			cf->flags |= CANFD_BRS;
cf                280 drivers/net/can/peak_canfd/peak_canfd.c 			cf->flags |= CANFD_ESI;
cf                283 drivers/net/can/peak_canfd/peak_canfd.c 		skb = alloc_can_skb(priv->ndev, (struct can_frame **)&cf);
cf                288 drivers/net/can/peak_canfd/peak_canfd.c 	cf->can_id = le32_to_cpu(msg->can_id);
cf                289 drivers/net/can/peak_canfd/peak_canfd.c 	cf->len = cf_len;
cf                292 drivers/net/can/peak_canfd/peak_canfd.c 		cf->can_id |= CAN_EFF_FLAG;
cf                295 drivers/net/can/peak_canfd/peak_canfd.c 		cf->can_id |= CAN_RTR_FLAG;
cf                297 drivers/net/can/peak_canfd/peak_canfd.c 		memcpy(cf->data, msg->d, cf->len);
cf                299 drivers/net/can/peak_canfd/peak_canfd.c 	stats->rx_bytes += cf->len;
cf                323 drivers/net/can/peak_canfd/peak_canfd.c 	struct can_frame *cf;
cf                342 drivers/net/can/peak_canfd/peak_canfd.c 	skb = alloc_can_err_skb(ndev, &cf);
cf                351 drivers/net/can/peak_canfd/peak_canfd.c 			cf->can_id |= CAN_ERR_BUSOFF;
cf                358 drivers/net/can/peak_canfd/peak_canfd.c 			cf->can_id |= CAN_ERR_CRTL;
cf                359 drivers/net/can/peak_canfd/peak_canfd.c 			cf->data[1] = (priv->bec.txerr > priv->bec.rxerr) ?
cf                362 drivers/net/can/peak_canfd/peak_canfd.c 			cf->data[6] = priv->bec.txerr;
cf                363 drivers/net/can/peak_canfd/peak_canfd.c 			cf->data[7] = priv->bec.rxerr;
cf                371 drivers/net/can/peak_canfd/peak_canfd.c 			cf->can_id |= CAN_ERR_CRTL;
cf                372 drivers/net/can/peak_canfd/peak_canfd.c 			cf->data[1] = (priv->bec.txerr > priv->bec.rxerr) ?
cf                375 drivers/net/can/peak_canfd/peak_canfd.c 			cf->data[6] = priv->bec.txerr;
cf                376 drivers/net/can/peak_canfd/peak_canfd.c 			cf->data[7] = priv->bec.rxerr;
cf                382 drivers/net/can/peak_canfd/peak_canfd.c 		can_change_state(ndev, cf, CAN_STATE_ERROR_ACTIVE,
cf                395 drivers/net/can/peak_canfd/peak_canfd.c 	stats->rx_bytes += cf->can_dlc;
cf                405 drivers/net/can/peak_canfd/peak_canfd.c 	struct can_frame *cf;
cf                411 drivers/net/can/peak_canfd/peak_canfd.c 	skb = alloc_can_err_skb(priv->ndev, &cf);
cf                417 drivers/net/can/peak_canfd/peak_canfd.c 	cf->can_id |= CAN_ERR_CRTL;
cf                418 drivers/net/can/peak_canfd/peak_canfd.c 	cf->data[1] = CAN_ERR_CRTL_RX_OVERFLOW;
cf                420 drivers/net/can/peak_canfd/peak_canfd.c 	cf->data[6] = priv->bec.txerr;
cf                421 drivers/net/can/peak_canfd/peak_canfd.c 	cf->data[7] = priv->bec.rxerr;
cf                423 drivers/net/can/peak_canfd/peak_canfd.c 	stats->rx_bytes += cf->can_dlc;
cf                631 drivers/net/can/peak_canfd/peak_canfd.c 	struct canfd_frame *cf = (struct canfd_frame *)skb->data;
cf                642 drivers/net/can/peak_canfd/peak_canfd.c 	msg_size = ALIGN(sizeof(*msg) + cf->len, 4);
cf                658 drivers/net/can/peak_canfd/peak_canfd.c 	if (cf->can_id & CAN_EFF_FLAG) {
cf                660 drivers/net/can/peak_canfd/peak_canfd.c 		msg->can_id = cpu_to_le32(cf->can_id & CAN_EFF_MASK);
cf                662 drivers/net/can/peak_canfd/peak_canfd.c 		msg->can_id = cpu_to_le32(cf->can_id & CAN_SFF_MASK);
cf                667 drivers/net/can/peak_canfd/peak_canfd.c 		can_dlc = can_len2dlc(cf->len);
cf                671 drivers/net/can/peak_canfd/peak_canfd.c 		if (cf->flags & CANFD_BRS)
cf                674 drivers/net/can/peak_canfd/peak_canfd.c 		if (cf->flags & CANFD_ESI)
cf                678 drivers/net/can/peak_canfd/peak_canfd.c 		can_dlc = cf->len;
cf                680 drivers/net/can/peak_canfd/peak_canfd.c 		if (cf->can_id & CAN_RTR_FLAG)
cf                693 drivers/net/can/peak_canfd/peak_canfd.c 	memcpy(msg->d, cf->data, cf->len);
cf                227 drivers/net/can/rcar/rcar_can.c 	struct can_frame *cf;
cf                232 drivers/net/can/rcar/rcar_can.c 	skb = alloc_can_err_skb(ndev, &cf);
cf                239 drivers/net/can/rcar/rcar_can.c 			cf->can_id |= CAN_ERR_CRTL;
cf                240 drivers/net/can/rcar/rcar_can.c 			cf->data[6] = txerr;
cf                241 drivers/net/can/rcar/rcar_can.c 			cf->data[7] = rxerr;
cf                250 drivers/net/can/rcar/rcar_can.c 			cf->can_id |= CAN_ERR_BUSERROR | CAN_ERR_PROT;
cf                258 drivers/net/can/rcar/rcar_can.c 				cf->data[3] = CAN_ERR_PROT_LOC_ACK_DEL;
cf                265 drivers/net/can/rcar/rcar_can.c 				cf->data[2] |= CAN_ERR_PROT_BIT0;
cf                272 drivers/net/can/rcar/rcar_can.c 				cf->data[2] |= CAN_ERR_PROT_BIT1;
cf                279 drivers/net/can/rcar/rcar_can.c 				cf->data[3] = CAN_ERR_PROT_LOC_CRC_SEQ;
cf                286 drivers/net/can/rcar/rcar_can.c 				cf->can_id |= CAN_ERR_ACK;
cf                287 drivers/net/can/rcar/rcar_can.c 				cf->data[3] = CAN_ERR_PROT_LOC_ACK;
cf                295 drivers/net/can/rcar/rcar_can.c 				cf->data[2] |= CAN_ERR_PROT_FORM;
cf                302 drivers/net/can/rcar/rcar_can.c 				cf->data[2] |= CAN_ERR_PROT_STUFF;
cf                317 drivers/net/can/rcar/rcar_can.c 			cf->data[1] = txerr > rxerr ? CAN_ERR_CRTL_TX_WARNING :
cf                327 drivers/net/can/rcar/rcar_can.c 			cf->data[1] = txerr > rxerr ? CAN_ERR_CRTL_TX_PASSIVE :
cf                341 drivers/net/can/rcar/rcar_can.c 			cf->can_id |= CAN_ERR_BUSOFF;
cf                349 drivers/net/can/rcar/rcar_can.c 			cf->can_id |= CAN_ERR_CRTL;
cf                350 drivers/net/can/rcar/rcar_can.c 			cf->data[1] = CAN_ERR_CRTL_RX_OVERFLOW;
cf                360 drivers/net/can/rcar/rcar_can.c 			cf->can_id |= CAN_ERR_PROT;
cf                361 drivers/net/can/rcar/rcar_can.c 			cf->data[2] |= CAN_ERR_PROT_OVERLOAD;
cf                367 drivers/net/can/rcar/rcar_can.c 		stats->rx_bytes += cf->can_dlc;
cf                596 drivers/net/can/rcar/rcar_can.c 	struct can_frame *cf = (struct can_frame *)skb->data;
cf                602 drivers/net/can/rcar/rcar_can.c 	if (cf->can_id & CAN_EFF_FLAG)	/* Extended frame format */
cf                603 drivers/net/can/rcar/rcar_can.c 		data = (cf->can_id & CAN_EFF_MASK) | RCAR_CAN_IDE;
cf                605 drivers/net/can/rcar/rcar_can.c 		data = (cf->can_id & CAN_SFF_MASK) << RCAR_CAN_SID_SHIFT;
cf                607 drivers/net/can/rcar/rcar_can.c 	if (cf->can_id & CAN_RTR_FLAG) { /* Remote transmission request */
cf                610 drivers/net/can/rcar/rcar_can.c 		for (i = 0; i < cf->can_dlc; i++)
cf                611 drivers/net/can/rcar/rcar_can.c 			writeb(cf->data[i],
cf                617 drivers/net/can/rcar/rcar_can.c 	writeb(cf->can_dlc, &priv->regs->mb[RCAR_CAN_TX_FIFO_MBX].dlc);
cf                619 drivers/net/can/rcar/rcar_can.c 	priv->tx_dlc[priv->tx_head % RCAR_CAN_FIFO_DEPTH] = cf->can_dlc;
cf                644 drivers/net/can/rcar/rcar_can.c 	struct can_frame *cf;
cf                649 drivers/net/can/rcar/rcar_can.c 	skb = alloc_can_skb(priv->ndev, &cf);
cf                657 drivers/net/can/rcar/rcar_can.c 		cf->can_id = (data & CAN_EFF_MASK) | CAN_EFF_FLAG;
cf                659 drivers/net/can/rcar/rcar_can.c 		cf->can_id = (data >> RCAR_CAN_SID_SHIFT) & CAN_SFF_MASK;
cf                662 drivers/net/can/rcar/rcar_can.c 	cf->can_dlc = get_can_dlc(dlc);
cf                664 drivers/net/can/rcar/rcar_can.c 		cf->can_id |= CAN_RTR_FLAG;
cf                666 drivers/net/can/rcar/rcar_can.c 		for (dlc = 0; dlc < cf->can_dlc; dlc++)
cf                667 drivers/net/can/rcar/rcar_can.c 			cf->data[dlc] =
cf                673 drivers/net/can/rcar/rcar_can.c 	stats->rx_bytes += cf->can_dlc;
cf                594 drivers/net/can/rcar/rcar_canfd.c 				struct canfd_frame *cf, u32 off)
cf                598 drivers/net/can/rcar/rcar_canfd.c 	lwords = DIV_ROUND_UP(cf->len, sizeof(u32));
cf                600 drivers/net/can/rcar/rcar_canfd.c 		*((u32 *)cf->data + i) =
cf                605 drivers/net/can/rcar/rcar_canfd.c 				struct canfd_frame *cf, u32 off)
cf                609 drivers/net/can/rcar/rcar_canfd.c 	lwords = DIV_ROUND_UP(cf->len, sizeof(u32));
cf                612 drivers/net/can/rcar/rcar_canfd.c 				 *((u32 *)cf->data + i));
cf                921 drivers/net/can/rcar/rcar_canfd.c 	struct can_frame *cf;
cf                928 drivers/net/can/rcar/rcar_canfd.c 	skb = alloc_can_err_skb(ndev, &cf);
cf                937 drivers/net/can/rcar/rcar_canfd.c 		cf->can_id |= CAN_ERR_BUSERROR | CAN_ERR_PROT;
cf                938 drivers/net/can/rcar/rcar_canfd.c 		cf->data[2] = CAN_ERR_PROT_UNSPEC;
cf                944 drivers/net/can/rcar/rcar_canfd.c 		cf->data[3] |= CAN_ERR_PROT_LOC_ACK_DEL;
cf                949 drivers/net/can/rcar/rcar_canfd.c 		cf->data[2] |= CAN_ERR_PROT_BIT0;
cf                954 drivers/net/can/rcar/rcar_canfd.c 		cf->data[2] |= CAN_ERR_PROT_BIT1;
cf                959 drivers/net/can/rcar/rcar_canfd.c 		cf->data[3] |= CAN_ERR_PROT_LOC_CRC_SEQ;
cf                964 drivers/net/can/rcar/rcar_canfd.c 		cf->can_id |= CAN_ERR_ACK;
cf                965 drivers/net/can/rcar/rcar_canfd.c 		cf->data[3] |= CAN_ERR_PROT_LOC_ACK;
cf                970 drivers/net/can/rcar/rcar_canfd.c 		cf->data[2] |= CAN_ERR_PROT_FORM;
cf                975 drivers/net/can/rcar/rcar_canfd.c 		cf->data[2] |= CAN_ERR_PROT_STUFF;
cf                980 drivers/net/can/rcar/rcar_canfd.c 		cf->can_id |= CAN_ERR_LOSTARB;
cf                981 drivers/net/can/rcar/rcar_canfd.c 		cf->data[0] |= CAN_ERR_LOSTARB_UNSPEC;
cf                986 drivers/net/can/rcar/rcar_canfd.c 		cf->can_id |= CAN_ERR_BUSERROR;
cf                992 drivers/net/can/rcar/rcar_canfd.c 		cf->can_id |= CAN_ERR_CRTL;
cf                993 drivers/net/can/rcar/rcar_canfd.c 		cf->data[1] = txerr > rxerr ? CAN_ERR_CRTL_TX_WARNING :
cf                995 drivers/net/can/rcar/rcar_canfd.c 		cf->data[6] = txerr;
cf                996 drivers/net/can/rcar/rcar_canfd.c 		cf->data[7] = rxerr;
cf               1002 drivers/net/can/rcar/rcar_canfd.c 		cf->can_id |= CAN_ERR_CRTL;
cf               1003 drivers/net/can/rcar/rcar_canfd.c 		cf->data[1] = txerr > rxerr ? CAN_ERR_CRTL_TX_PASSIVE :
cf               1005 drivers/net/can/rcar/rcar_canfd.c 		cf->data[6] = txerr;
cf               1006 drivers/net/can/rcar/rcar_canfd.c 		cf->data[7] = rxerr;
cf               1014 drivers/net/can/rcar/rcar_canfd.c 		cf->can_id |= CAN_ERR_BUSOFF;
cf               1020 drivers/net/can/rcar/rcar_canfd.c 		cf->can_id |= CAN_ERR_PROT;
cf               1021 drivers/net/can/rcar/rcar_canfd.c 		cf->data[2] |= CAN_ERR_PROT_OVERLOAD;
cf               1028 drivers/net/can/rcar/rcar_canfd.c 	stats->rx_bytes += cf->can_dlc;
cf               1115 drivers/net/can/rcar/rcar_canfd.c 	struct can_frame *cf;
cf               1127 drivers/net/can/rcar/rcar_canfd.c 		skb = alloc_can_err_skb(ndev, &cf);
cf               1135 drivers/net/can/rcar/rcar_canfd.c 		can_change_state(ndev, cf, tx_state, rx_state);
cf               1137 drivers/net/can/rcar/rcar_canfd.c 		stats->rx_bytes += cf->can_dlc;
cf               1342 drivers/net/can/rcar/rcar_canfd.c 	struct canfd_frame *cf = (struct canfd_frame *)skb->data;
cf               1350 drivers/net/can/rcar/rcar_canfd.c 	if (cf->can_id & CAN_EFF_FLAG) {
cf               1351 drivers/net/can/rcar/rcar_canfd.c 		id = cf->can_id & CAN_EFF_MASK;
cf               1354 drivers/net/can/rcar/rcar_canfd.c 		id = cf->can_id & CAN_SFF_MASK;
cf               1357 drivers/net/can/rcar/rcar_canfd.c 	if (cf->can_id & CAN_RTR_FLAG)
cf               1360 drivers/net/can/rcar/rcar_canfd.c 	dlc = RCANFD_CFPTR_CFDLC(can_len2dlc(cf->len));
cf               1371 drivers/net/can/rcar/rcar_canfd.c 			if (cf->flags & CANFD_BRS)
cf               1381 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_put_data(priv, cf,
cf               1388 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_put_data(priv, cf,
cf               1392 drivers/net/can/rcar/rcar_canfd.c 	priv->tx_len[priv->tx_head % RCANFD_FIFO_DEPTH] = cf->len;
cf               1415 drivers/net/can/rcar/rcar_canfd.c 	struct canfd_frame *cf;
cf               1427 drivers/net/can/rcar/rcar_canfd.c 			skb = alloc_canfd_skb(priv->ndev, &cf);
cf               1430 drivers/net/can/rcar/rcar_canfd.c 					    (struct can_frame **)&cf);
cf               1434 drivers/net/can/rcar/rcar_canfd.c 		skb = alloc_can_skb(priv->ndev, (struct can_frame **)&cf);
cf               1443 drivers/net/can/rcar/rcar_canfd.c 		cf->can_id = (id & CAN_EFF_MASK) | CAN_EFF_FLAG;
cf               1445 drivers/net/can/rcar/rcar_canfd.c 		cf->can_id = id & CAN_SFF_MASK;
cf               1449 drivers/net/can/rcar/rcar_canfd.c 			cf->len = can_dlc2len(RCANFD_RFPTR_RFDLC(dlc));
cf               1451 drivers/net/can/rcar/rcar_canfd.c 			cf->len = get_can_dlc(RCANFD_RFPTR_RFDLC(dlc));
cf               1454 drivers/net/can/rcar/rcar_canfd.c 			cf->flags |= CANFD_ESI;
cf               1459 drivers/net/can/rcar/rcar_canfd.c 			cf->can_id |= CAN_RTR_FLAG;
cf               1462 drivers/net/can/rcar/rcar_canfd.c 				cf->flags |= CANFD_BRS;
cf               1464 drivers/net/can/rcar/rcar_canfd.c 			rcar_canfd_get_data(priv, cf, RCANFD_F_RFDF(ridx, 0));
cf               1467 drivers/net/can/rcar/rcar_canfd.c 		cf->len = get_can_dlc(RCANFD_RFPTR_RFDLC(dlc));
cf               1469 drivers/net/can/rcar/rcar_canfd.c 			cf->can_id |= CAN_RTR_FLAG;
cf               1471 drivers/net/can/rcar/rcar_canfd.c 			rcar_canfd_get_data(priv, cf, RCANFD_C_RFDF(ridx, 0));
cf               1481 drivers/net/can/rcar/rcar_canfd.c 	stats->rx_bytes += cf->len;
cf                 47 drivers/net/can/rx-offload.c 		struct can_frame *cf = (struct can_frame *)skb->data;
cf                 51 drivers/net/can/rx-offload.c 		stats->rx_bytes += cf->can_dlc;
cf                136 drivers/net/can/rx-offload.c 	struct can_frame *cf;
cf                141 drivers/net/can/rx-offload.c 		skb = alloc_can_skb(offload->dev, &cf);
cf                180 drivers/net/can/rx-offload.c 	ret = offload->mailbox_read(offload, cf, &cb->timestamp, n);
cf                285 drivers/net/can/sja1000/sja1000.c 	struct can_frame *cf = (struct can_frame *)skb->data;
cf                298 drivers/net/can/sja1000/sja1000.c 	fi = dlc = cf->can_dlc;
cf                299 drivers/net/can/sja1000/sja1000.c 	id = cf->can_id;
cf                320 drivers/net/can/sja1000/sja1000.c 		priv->write_reg(priv, dreg++, cf->data[i]);
cf                341 drivers/net/can/sja1000/sja1000.c 	struct can_frame *cf;
cf                349 drivers/net/can/sja1000/sja1000.c 	skb = alloc_can_skb(dev, &cf);
cf                370 drivers/net/can/sja1000/sja1000.c 	cf->can_dlc = get_can_dlc(fi & 0x0F);
cf                374 drivers/net/can/sja1000/sja1000.c 		for (i = 0; i < cf->can_dlc; i++)
cf                375 drivers/net/can/sja1000/sja1000.c 			cf->data[i] = priv->read_reg(priv, dreg++);
cf                378 drivers/net/can/sja1000/sja1000.c 	cf->can_id = id;
cf                384 drivers/net/can/sja1000/sja1000.c 	stats->rx_bytes += cf->can_dlc;
cf                394 drivers/net/can/sja1000/sja1000.c 	struct can_frame *cf;
cf                401 drivers/net/can/sja1000/sja1000.c 	skb = alloc_can_err_skb(dev, &cf);
cf                408 drivers/net/can/sja1000/sja1000.c 	cf->data[6] = txerr;
cf                409 drivers/net/can/sja1000/sja1000.c 	cf->data[7] = rxerr;
cf                414 drivers/net/can/sja1000/sja1000.c 		cf->can_id |= CAN_ERR_CRTL;
cf                415 drivers/net/can/sja1000/sja1000.c 		cf->data[1] = CAN_ERR_CRTL_RX_OVERFLOW;
cf                439 drivers/net/can/sja1000/sja1000.c 		cf->can_id |= CAN_ERR_PROT | CAN_ERR_BUSERROR;
cf                444 drivers/net/can/sja1000/sja1000.c 			cf->data[2] |= CAN_ERR_PROT_BIT;
cf                447 drivers/net/can/sja1000/sja1000.c 			cf->data[2] |= CAN_ERR_PROT_FORM;
cf                450 drivers/net/can/sja1000/sja1000.c 			cf->data[2] |= CAN_ERR_PROT_STUFF;
cf                457 drivers/net/can/sja1000/sja1000.c 		cf->data[3] = ecc & ECC_SEG;
cf                461 drivers/net/can/sja1000/sja1000.c 			cf->data[2] |= CAN_ERR_PROT_TX;
cf                478 drivers/net/can/sja1000/sja1000.c 		cf->can_id |= CAN_ERR_LOSTARB;
cf                479 drivers/net/can/sja1000/sja1000.c 		cf->data[0] = alc & 0x1f;
cf                486 drivers/net/can/sja1000/sja1000.c 		can_change_state(dev, cf, tx_state, rx_state);
cf                493 drivers/net/can/sja1000/sja1000.c 	stats->rx_bytes += cf->can_dlc;
cf                146 drivers/net/can/slcan.c 	struct can_frame cf;
cf                151 drivers/net/can/slcan.c 	memset(&cf, 0, sizeof(cf));
cf                155 drivers/net/can/slcan.c 		cf.can_id = CAN_RTR_FLAG;
cf                159 drivers/net/can/slcan.c 		cf.can_dlc = sl->rbuff[SLC_CMD_LEN + SLC_SFF_ID_LEN];
cf                165 drivers/net/can/slcan.c 		cf.can_id = CAN_RTR_FLAG;
cf                168 drivers/net/can/slcan.c 		cf.can_id |= CAN_EFF_FLAG;
cf                170 drivers/net/can/slcan.c 		cf.can_dlc = sl->rbuff[SLC_CMD_LEN + SLC_EFF_ID_LEN];
cf                182 drivers/net/can/slcan.c 	cf.can_id |= tmpid;
cf                185 drivers/net/can/slcan.c 	if (cf.can_dlc >= '0' && cf.can_dlc < '9')
cf                186 drivers/net/can/slcan.c 		cf.can_dlc -= '0';
cf                191 drivers/net/can/slcan.c 	if (!(cf.can_id & CAN_RTR_FLAG)) {
cf                192 drivers/net/can/slcan.c 		for (i = 0; i < cf.can_dlc; i++) {
cf                196 drivers/net/can/slcan.c 			cf.data[i] = (tmp << 4);
cf                200 drivers/net/can/slcan.c 			cf.data[i] |= tmp;
cf                218 drivers/net/can/slcan.c 	skb_put_data(skb, &cf, sizeof(struct can_frame));
cf                221 drivers/net/can/slcan.c 	sl->dev->stats.rx_bytes += cf.can_dlc;
cf                252 drivers/net/can/slcan.c static void slc_encaps(struct slcan *sl, struct can_frame *cf)
cf                257 drivers/net/can/slcan.c 	canid_t id = cf->can_id;
cf                261 drivers/net/can/slcan.c 	if (cf->can_id & CAN_RTR_FLAG)
cf                267 drivers/net/can/slcan.c 	if (cf->can_id & CAN_EFF_FLAG) {
cf                283 drivers/net/can/slcan.c 	pos += (cf->can_id & CAN_EFF_FLAG) ? SLC_EFF_ID_LEN : SLC_SFF_ID_LEN;
cf                285 drivers/net/can/slcan.c 	*pos++ = cf->can_dlc + '0';
cf                288 drivers/net/can/slcan.c 	if (!(cf->can_id & CAN_RTR_FLAG)) {
cf                289 drivers/net/can/slcan.c 		for (i = 0; i < cf->can_dlc; i++)
cf                290 drivers/net/can/slcan.c 			pos = hex_byte_pack_upper(pos, cf->data[i]);
cf                307 drivers/net/can/slcan.c 	sl->dev->stats.tx_bytes += cf->can_dlc;
cf                 59 drivers/net/can/softing/softing_main.c 	struct can_frame *cf = (struct can_frame *)skb->data;
cf                 80 drivers/net/can/softing/softing_main.c 	if (cf->can_id & CAN_RTR_FLAG)
cf                 82 drivers/net/can/softing/softing_main.c 	if (cf->can_id & CAN_EFF_FLAG)
cf                 87 drivers/net/can/softing/softing_main.c 	*ptr++ = cf->can_dlc;
cf                 88 drivers/net/can/softing/softing_main.c 	*ptr++ = (cf->can_id >> 0);
cf                 89 drivers/net/can/softing/softing_main.c 	*ptr++ = (cf->can_id >> 8);
cf                 90 drivers/net/can/softing/softing_main.c 	if (cf->can_id & CAN_EFF_FLAG) {
cf                 91 drivers/net/can/softing/softing_main.c 		*ptr++ = (cf->can_id >> 16);
cf                 92 drivers/net/can/softing/softing_main.c 		*ptr++ = (cf->can_id >> 24);
cf                 97 drivers/net/can/softing/softing_main.c 	if (!(cf->can_id & CAN_RTR_FLAG))
cf                 98 drivers/net/can/softing/softing_main.c 		memcpy(ptr, &cf->data[0], cf->can_dlc);
cf                135 drivers/net/can/softing/softing_main.c 	struct can_frame *cf;
cf                137 drivers/net/can/softing/softing_main.c 	skb = alloc_can_skb(netdev, &cf);
cf                140 drivers/net/can/softing/softing_main.c 	memcpy(cf, msg, sizeof(*msg));
cf                662 drivers/net/can/spi/hi311x.c 			struct can_frame *cf;
cf                667 drivers/net/can/spi/hi311x.c 			skb = alloc_can_err_skb(net, &cf);
cf                673 drivers/net/can/spi/hi311x.c 			cf->data[6] = txerr;
cf                674 drivers/net/can/spi/hi311x.c 			cf->data[7] = rxerr;
cf                677 drivers/net/can/spi/hi311x.c 			can_change_state(net, cf, tx_state, rx_state);
cf                693 drivers/net/can/spi/hi311x.c 			struct can_frame *cf;
cf                698 drivers/net/can/spi/hi311x.c 				skb = alloc_can_err_skb(net, &cf);
cf                702 drivers/net/can/spi/hi311x.c 				cf->can_id |= CAN_ERR_PROT | CAN_ERR_BUSERROR;
cf                706 drivers/net/can/spi/hi311x.c 					cf->data[2] |= CAN_ERR_PROT_BIT;
cf                708 drivers/net/can/spi/hi311x.c 					cf->data[2] |= CAN_ERR_PROT_FORM;
cf                710 drivers/net/can/spi/hi311x.c 					cf->data[2] |= CAN_ERR_PROT_STUFF;
cf                712 drivers/net/can/spi/hi311x.c 					cf->data[3] |= CAN_ERR_PROT_LOC_CRC_SEQ;
cf                714 drivers/net/can/spi/hi311x.c 					cf->data[3] |= CAN_ERR_PROT_LOC_ACK;
cf                716 drivers/net/can/spi/hi311x.c 				cf->data[6] = hi3110_read(spi, HI3110_READ_TEC);
cf                717 drivers/net/can/spi/hi311x.c 				cf->data[7] = hi3110_read(spi, HI3110_READ_REC);
cf                415 drivers/net/can/sun4i_can.c 	struct can_frame *cf = (struct can_frame *)skb->data;
cf                426 drivers/net/can/sun4i_can.c 	id = cf->can_id;
cf                427 drivers/net/can/sun4i_can.c 	dlc = cf->can_dlc;
cf                447 drivers/net/can/sun4i_can.c 		writel(cf->data[i], priv->base + (dreg + i * 4));
cf                465 drivers/net/can/sun4i_can.c 	struct can_frame *cf;
cf                473 drivers/net/can/sun4i_can.c 	skb = alloc_can_skb(dev, &cf);
cf                478 drivers/net/can/sun4i_can.c 	cf->can_dlc = get_can_dlc(fi & 0x0F);
cf                496 drivers/net/can/sun4i_can.c 		for (i = 0; i < cf->can_dlc; i++)
cf                497 drivers/net/can/sun4i_can.c 			cf->data[i] = readl(priv->base + dreg + i * 4);
cf                499 drivers/net/can/sun4i_can.c 	cf->can_id = id;
cf                504 drivers/net/can/sun4i_can.c 	stats->rx_bytes += cf->can_dlc;
cf                514 drivers/net/can/sun4i_can.c 	struct can_frame *cf;
cf                522 drivers/net/can/sun4i_can.c 	skb = alloc_can_err_skb(dev, &cf);
cf                529 drivers/net/can/sun4i_can.c 		cf->data[6] = txerr;
cf                530 drivers/net/can/sun4i_can.c 		cf->data[7] = rxerr;
cf                537 drivers/net/can/sun4i_can.c 			cf->can_id |= CAN_ERR_CRTL;
cf                538 drivers/net/can/sun4i_can.c 			cf->data[1] = CAN_ERR_CRTL_RX_OVERFLOW;
cf                572 drivers/net/can/sun4i_can.c 			cf->can_id |= CAN_ERR_PROT | CAN_ERR_BUSERROR;
cf                576 drivers/net/can/sun4i_can.c 				cf->data[2] |= CAN_ERR_PROT_BIT;
cf                579 drivers/net/can/sun4i_can.c 				cf->data[2] |= CAN_ERR_PROT_FORM;
cf                582 drivers/net/can/sun4i_can.c 				cf->data[2] |= CAN_ERR_PROT_STUFF;
cf                585 drivers/net/can/sun4i_can.c 				cf->data[3] = (ecc & SUN4I_STA_ERR_SEG_CODE)
cf                591 drivers/net/can/sun4i_can.c 				cf->data[2] |= CAN_ERR_PROT_TX;
cf                609 drivers/net/can/sun4i_can.c 			cf->can_id |= CAN_ERR_LOSTARB;
cf                610 drivers/net/can/sun4i_can.c 			cf->data[0] = (alc >> 8) & 0x1f;
cf                619 drivers/net/can/sun4i_can.c 			can_change_state(dev, cf, tx_state, rx_state);
cf                628 drivers/net/can/sun4i_can.c 		stats->rx_bytes += cf->can_dlc;
cf                478 drivers/net/can/ti_hecc.c 	struct can_frame *cf = (struct can_frame *)skb->data;
cf                499 drivers/net/can/ti_hecc.c 	data = cf->can_dlc | (get_tx_head_prio(priv) << 8);
cf                500 drivers/net/can/ti_hecc.c 	if (cf->can_id & CAN_RTR_FLAG) /* Remote transmission request */
cf                504 drivers/net/can/ti_hecc.c 	if (cf->can_id & CAN_EFF_FLAG) /* Extended frame format */
cf                505 drivers/net/can/ti_hecc.c 		data = (cf->can_id & CAN_EFF_MASK) | HECC_CANMID_IDE;
cf                507 drivers/net/can/ti_hecc.c 		data = (cf->can_id & CAN_SFF_MASK) << 18;
cf                510 drivers/net/can/ti_hecc.c 		       be32_to_cpu(*(__be32 *)(cf->data)));
cf                511 drivers/net/can/ti_hecc.c 	if (cf->can_dlc > 4)
cf                513 drivers/net/can/ti_hecc.c 			       be32_to_cpu(*(__be32 *)(cf->data + 4)));
cf                515 drivers/net/can/ti_hecc.c 		*(u32 *)(cf->data + 4) = 0;
cf                539 drivers/net/can/ti_hecc.c 					 struct can_frame *cf,
cf                549 drivers/net/can/ti_hecc.c 		cf->can_id = (data & CAN_EFF_MASK) | CAN_EFF_FLAG;
cf                551 drivers/net/can/ti_hecc.c 		cf->can_id = (data >> 18) & CAN_SFF_MASK;
cf                555 drivers/net/can/ti_hecc.c 		cf->can_id |= CAN_RTR_FLAG;
cf                556 drivers/net/can/ti_hecc.c 	cf->can_dlc = get_can_dlc(data & 0xF);
cf                559 drivers/net/can/ti_hecc.c 	*(__be32 *)(cf->data) = cpu_to_be32(data);
cf                560 drivers/net/can/ti_hecc.c 	if (cf->can_dlc > 4) {
cf                562 drivers/net/can/ti_hecc.c 		*(__be32 *)(cf->data + 4) = cpu_to_be32(data);
cf                592 drivers/net/can/ti_hecc.c 	struct can_frame *cf;
cf                599 drivers/net/can/ti_hecc.c 		skb = alloc_can_err_skb(ndev, &cf);
cf                609 drivers/net/can/ti_hecc.c 		cf->can_id |= CAN_ERR_BUSERROR | CAN_ERR_PROT;
cf                611 drivers/net/can/ti_hecc.c 			cf->data[2] |= CAN_ERR_PROT_FORM;
cf                613 drivers/net/can/ti_hecc.c 			cf->data[2] |= CAN_ERR_PROT_BIT;
cf                615 drivers/net/can/ti_hecc.c 			cf->data[2] |= CAN_ERR_PROT_STUFF;
cf                617 drivers/net/can/ti_hecc.c 			cf->data[3] = CAN_ERR_PROT_LOC_CRC_SEQ;
cf                619 drivers/net/can/ti_hecc.c 			cf->data[3] = CAN_ERR_PROT_LOC_ACK;
cf                638 drivers/net/can/ti_hecc.c 	struct can_frame *cf;
cf                643 drivers/net/can/ti_hecc.c 	skb = alloc_can_err_skb(priv->ndev, &cf);
cf                649 drivers/net/can/ti_hecc.c 	can_change_state(priv->ndev, cf, tx_state, rx_state);
cf                652 drivers/net/can/ti_hecc.c 		cf->data[6] = hecc_read(priv, HECC_CANTEC);
cf                653 drivers/net/can/ti_hecc.c 		cf->data[7] = hecc_read(priv, HECC_CANREC);
cf                299 drivers/net/can/usb/ems_usb.c 	struct can_frame *cf;
cf                304 drivers/net/can/usb/ems_usb.c 	skb = alloc_can_skb(dev->netdev, &cf);
cf                308 drivers/net/can/usb/ems_usb.c 	cf->can_id = le32_to_cpu(msg->msg.can_msg.id);
cf                309 drivers/net/can/usb/ems_usb.c 	cf->can_dlc = get_can_dlc(msg->msg.can_msg.length & 0xF);
cf                313 drivers/net/can/usb/ems_usb.c 		cf->can_id |= CAN_EFF_FLAG;
cf                317 drivers/net/can/usb/ems_usb.c 		cf->can_id |= CAN_RTR_FLAG;
cf                319 drivers/net/can/usb/ems_usb.c 		for (i = 0; i < cf->can_dlc; i++)
cf                320 drivers/net/can/usb/ems_usb.c 			cf->data[i] = msg->msg.can_msg.msg[i];
cf                324 drivers/net/can/usb/ems_usb.c 	stats->rx_bytes += cf->can_dlc;
cf                330 drivers/net/can/usb/ems_usb.c 	struct can_frame *cf;
cf                334 drivers/net/can/usb/ems_usb.c 	skb = alloc_can_err_skb(dev->netdev, &cf);
cf                343 drivers/net/can/usb/ems_usb.c 			cf->can_id |= CAN_ERR_BUSOFF;
cf                363 drivers/net/can/usb/ems_usb.c 		cf->can_id |= CAN_ERR_PROT | CAN_ERR_BUSERROR;
cf                367 drivers/net/can/usb/ems_usb.c 			cf->data[2] |= CAN_ERR_PROT_BIT;
cf                370 drivers/net/can/usb/ems_usb.c 			cf->data[2] |= CAN_ERR_PROT_FORM;
cf                373 drivers/net/can/usb/ems_usb.c 			cf->data[2] |= CAN_ERR_PROT_STUFF;
cf                376 drivers/net/can/usb/ems_usb.c 			cf->data[3] = ecc & SJA1000_ECC_SEG;
cf                382 drivers/net/can/usb/ems_usb.c 			cf->data[2] |= CAN_ERR_PROT_TX;
cf                386 drivers/net/can/usb/ems_usb.c 			cf->can_id |= CAN_ERR_CRTL;
cf                387 drivers/net/can/usb/ems_usb.c 			cf->data[1] = (txerr > rxerr) ?
cf                391 drivers/net/can/usb/ems_usb.c 		cf->can_id |= CAN_ERR_CRTL;
cf                392 drivers/net/can/usb/ems_usb.c 		cf->data[1] = CAN_ERR_CRTL_RX_OVERFLOW;
cf                399 drivers/net/can/usb/ems_usb.c 	stats->rx_bytes += cf->can_dlc;
cf                732 drivers/net/can/usb/ems_usb.c 	struct can_frame *cf = (struct can_frame *)skb->data;
cf                757 drivers/net/can/usb/ems_usb.c 	msg->msg.can_msg.id = cpu_to_le32(cf->can_id & CAN_ERR_MASK);
cf                758 drivers/net/can/usb/ems_usb.c 	msg->msg.can_msg.length = cf->can_dlc;
cf                760 drivers/net/can/usb/ems_usb.c 	if (cf->can_id & CAN_RTR_FLAG) {
cf                761 drivers/net/can/usb/ems_usb.c 		msg->type = cf->can_id & CAN_EFF_FLAG ?
cf                766 drivers/net/can/usb/ems_usb.c 		msg->type = cf->can_id & CAN_EFF_FLAG ?
cf                769 drivers/net/can/usb/ems_usb.c 		for (i = 0; i < cf->can_dlc; i++)
cf                770 drivers/net/can/usb/ems_usb.c 			msg->msg.can_msg.msg[i] = cf->data[i];
cf                772 drivers/net/can/usb/ems_usb.c 		msg->length = CPC_CAN_MSG_MIN_SIZE + cf->can_dlc;
cf                797 drivers/net/can/usb/ems_usb.c 	context->dlc = cf->can_dlc;
cf                218 drivers/net/can/usb/esd_usb2.c 	struct can_frame *cf;
cf                228 drivers/net/can/usb/esd_usb2.c 		skb = alloc_can_err_skb(priv->netdev, &cf);
cf                240 drivers/net/can/usb/esd_usb2.c 				cf->can_id |= CAN_ERR_BUSOFF;
cf                260 drivers/net/can/usb/esd_usb2.c 			cf->can_id |= CAN_ERR_PROT | CAN_ERR_BUSERROR;
cf                264 drivers/net/can/usb/esd_usb2.c 				cf->data[2] |= CAN_ERR_PROT_BIT;
cf                267 drivers/net/can/usb/esd_usb2.c 				cf->data[2] |= CAN_ERR_PROT_FORM;
cf                270 drivers/net/can/usb/esd_usb2.c 				cf->data[2] |= CAN_ERR_PROT_STUFF;
cf                273 drivers/net/can/usb/esd_usb2.c 				cf->data[3] = ecc & SJA1000_ECC_SEG;
cf                279 drivers/net/can/usb/esd_usb2.c 				cf->data[2] |= CAN_ERR_PROT_TX;
cf                283 drivers/net/can/usb/esd_usb2.c 				cf->data[1] = (txerr > rxerr) ?
cf                287 drivers/net/can/usb/esd_usb2.c 			cf->data[6] = txerr;
cf                288 drivers/net/can/usb/esd_usb2.c 			cf->data[7] = rxerr;
cf                295 drivers/net/can/usb/esd_usb2.c 		stats->rx_bytes += cf->can_dlc;
cf                304 drivers/net/can/usb/esd_usb2.c 	struct can_frame *cf;
cf                317 drivers/net/can/usb/esd_usb2.c 		skb = alloc_can_skb(priv->netdev, &cf);
cf                323 drivers/net/can/usb/esd_usb2.c 		cf->can_id = id & ESD_IDMASK;
cf                324 drivers/net/can/usb/esd_usb2.c 		cf->can_dlc = get_can_dlc(msg->msg.rx.dlc & ~ESD_RTR);
cf                327 drivers/net/can/usb/esd_usb2.c 			cf->can_id |= CAN_EFF_FLAG;
cf                330 drivers/net/can/usb/esd_usb2.c 			cf->can_id |= CAN_RTR_FLAG;
cf                332 drivers/net/can/usb/esd_usb2.c 			for (i = 0; i < cf->can_dlc; i++)
cf                333 drivers/net/can/usb/esd_usb2.c 				cf->data[i] = msg->msg.rx.data[i];
cf                337 drivers/net/can/usb/esd_usb2.c 		stats->rx_bytes += cf->can_dlc;
cf                707 drivers/net/can/usb/esd_usb2.c 	struct can_frame *cf = (struct can_frame *)skb->data;
cf                740 drivers/net/can/usb/esd_usb2.c 	msg->msg.tx.dlc = cf->can_dlc;
cf                741 drivers/net/can/usb/esd_usb2.c 	msg->msg.tx.id = cpu_to_le32(cf->can_id & CAN_ERR_MASK);
cf                743 drivers/net/can/usb/esd_usb2.c 	if (cf->can_id & CAN_RTR_FLAG)
cf                746 drivers/net/can/usb/esd_usb2.c 	if (cf->can_id & CAN_EFF_FLAG)
cf                749 drivers/net/can/usb/esd_usb2.c 	for (i = 0; i < cf->can_dlc; i++)
cf                750 drivers/net/can/usb/esd_usb2.c 		msg->msg.tx.data[i] = cf->data[i];
cf                752 drivers/net/can/usb/esd_usb2.c 	msg->msg.hdr.len += (cf->can_dlc + 3) >> 2;
cf                772 drivers/net/can/usb/esd_usb2.c 	context->dlc = cf->can_dlc;
cf                265 drivers/net/can/usb/gs_usb.c static void gs_update_state(struct gs_can *dev, struct can_frame *cf)
cf                269 drivers/net/can/usb/gs_usb.c 	if (cf->can_id & CAN_ERR_RESTARTED) {
cf                272 drivers/net/can/usb/gs_usb.c 	} else if (cf->can_id & CAN_ERR_BUSOFF) {
cf                275 drivers/net/can/usb/gs_usb.c 	} else if (cf->can_id & CAN_ERR_CRTL) {
cf                276 drivers/net/can/usb/gs_usb.c 		if ((cf->data[1] & CAN_ERR_CRTL_TX_WARNING) ||
cf                277 drivers/net/can/usb/gs_usb.c 		    (cf->data[1] & CAN_ERR_CRTL_RX_WARNING)) {
cf                280 drivers/net/can/usb/gs_usb.c 		} else if ((cf->data[1] & CAN_ERR_CRTL_TX_PASSIVE) ||
cf                281 drivers/net/can/usb/gs_usb.c 			   (cf->data[1] & CAN_ERR_CRTL_RX_PASSIVE)) {
cf                299 drivers/net/can/usb/gs_usb.c 	struct can_frame *cf;
cf                328 drivers/net/can/usb/gs_usb.c 		skb = alloc_can_skb(dev->netdev, &cf);
cf                332 drivers/net/can/usb/gs_usb.c 		cf->can_id = hf->can_id;
cf                334 drivers/net/can/usb/gs_usb.c 		cf->can_dlc = get_can_dlc(hf->can_dlc);
cf                335 drivers/net/can/usb/gs_usb.c 		memcpy(cf->data, hf->data, 8);
cf                339 drivers/net/can/usb/gs_usb.c 			gs_update_state(dev, cf);
cf                376 drivers/net/can/usb/gs_usb.c 		skb = alloc_can_err_skb(netdev, &cf);
cf                380 drivers/net/can/usb/gs_usb.c 		cf->can_id |= CAN_ERR_CRTL;
cf                381 drivers/net/can/usb/gs_usb.c 		cf->can_dlc = CAN_ERR_DLC;
cf                382 drivers/net/can/usb/gs_usb.c 		cf->data[1] = CAN_ERR_CRTL_RX_OVERFLOW;
cf                469 drivers/net/can/usb/gs_usb.c 	struct can_frame *cf;
cf                504 drivers/net/can/usb/gs_usb.c 	cf = (struct can_frame *)skb->data;
cf                506 drivers/net/can/usb/gs_usb.c 	hf->can_id = cf->can_id;
cf                507 drivers/net/can/usb/gs_usb.c 	hf->can_dlc = cf->can_dlc;
cf                508 drivers/net/can/usb/gs_usb.c 	memcpy(hf->data, cf->data, cf->can_dlc);
cf                244 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c 	struct can_frame *cf;
cf                250 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c 	skb = alloc_can_err_skb(netdev, &cf);
cf                257 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c 	cf->can_id |= CAN_ERR_CRTL;
cf                258 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c 	cf->data[1] = CAN_ERR_CRTL_RX_OVERFLOW;
cf                261 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c 	stats->rx_bytes += cf->can_dlc;
cf                844 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	struct can_frame *cf;
cf                864 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	skb = alloc_can_err_skb(netdev, &cf);
cf                872 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 		can_change_state(netdev, cf, tx_state, rx_state);
cf                893 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	cf->data[6] = bec->txerr;
cf                894 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	cf->data[7] = bec->rxerr;
cf                898 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	stats->rx_bytes += cf->can_dlc;
cf                992 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	struct can_frame *cf;
cf               1010 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	skb = alloc_can_err_skb(netdev, &cf);
cf               1021 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 			can_change_state(netdev, cf, tx_state, rx_state);
cf               1026 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 				cf->can_id |= CAN_ERR_RESTARTED;
cf               1047 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	cf->can_id |= CAN_ERR_BUSERROR;
cf               1048 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	cf->data[6] = bec.txerr;
cf               1049 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	cf->data[7] = bec.rxerr;
cf               1052 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	stats->rx_bytes += cf->can_dlc;
cf               1064 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	struct can_frame *cf;
cf               1068 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	skb = alloc_can_err_skb(netdev, &cf);
cf               1075 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	cf->can_id |= CAN_ERR_BUSERROR;
cf               1079 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 		cf->can_id |= CAN_ERR_ACK;
cf               1081 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 		cf->can_id |= CAN_ERR_LOSTARB;
cf               1087 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	stats->rx_bytes += cf->can_dlc;
cf               1140 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	struct can_frame *cf;
cf               1162 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	skb = alloc_can_skb(priv->netdev, &cf);
cf               1171 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	cf->can_id = le32_to_cpu(cmd->rx_can.id);
cf               1173 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	if (cf->can_id &  KVASER_USB_HYDRA_EXTENDED_FRAME_ID) {
cf               1174 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 		cf->can_id &= CAN_EFF_MASK;
cf               1175 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 		cf->can_id |= CAN_EFF_FLAG;
cf               1177 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 		cf->can_id &= CAN_SFF_MASK;
cf               1183 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	cf->can_dlc = get_can_dlc(cmd->rx_can.dlc);
cf               1186 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 		cf->can_id |= CAN_RTR_FLAG;
cf               1188 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 		memcpy(cf->data, cmd->rx_can.data, cf->can_dlc);
cf               1191 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	stats->rx_bytes += cf->can_dlc;
cf               1200 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	struct canfd_frame *cf;
cf               1229 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 		skb = alloc_canfd_skb(priv->netdev, &cf);
cf               1231 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 		skb = alloc_can_skb(priv->netdev, (struct can_frame **)&cf);
cf               1241 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	cf->can_id = le32_to_cpu(cmd->rx_can.id);
cf               1244 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 		cf->can_id &= CAN_EFF_MASK;
cf               1245 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 		cf->can_id |= CAN_EFF_FLAG;
cf               1247 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 		cf->can_id &= CAN_SFF_MASK;
cf               1254 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 		cf->len = can_dlc2len(get_canfd_dlc(dlc));
cf               1256 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 			cf->flags |= CANFD_BRS;
cf               1258 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 			cf->flags |= CANFD_ESI;
cf               1260 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 		cf->len = get_can_dlc(dlc);
cf               1264 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 		cf->can_id |= CAN_RTR_FLAG;
cf               1266 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 		memcpy(cf->data, cmd->rx_can.kcan_payload, cf->len);
cf               1269 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	stats->rx_bytes += cf->len;
cf               1353 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	struct canfd_frame *cf = (struct canfd_frame *)skb->data;
cf               1354 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	u8 dlc = can_len2dlc(cf->len);
cf               1355 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	u8 nbr_of_bytes = cf->len;
cf               1384 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	if (cf->can_id & CAN_EFF_FLAG) {
cf               1385 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 		id = cf->can_id & CAN_EFF_MASK;
cf               1387 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 		kcan_id = (cf->can_id & CAN_EFF_MASK) |
cf               1390 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 		id = cf->can_id & CAN_SFF_MASK;
cf               1392 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 		kcan_id = cf->can_id & CAN_SFF_MASK;
cf               1395 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	if (cf->can_id & CAN_ERR_FLAG)
cf               1406 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 			       (cf->flags & CANFD_BRS ?
cf               1409 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 		if (cf->can_id & CAN_RTR_FLAG) {
cf               1421 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	memcpy(cmd->tx_can.kcan_payload, cf->data, nbr_of_bytes);
cf               1433 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	struct can_frame *cf = (struct can_frame *)skb->data;
cf               1437 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	*frame_len = cf->can_dlc;
cf               1451 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	if (cf->can_id & CAN_EFF_FLAG) {
cf               1452 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 		id = (cf->can_id & CAN_EFF_MASK);
cf               1455 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 		id = cf->can_id & CAN_SFF_MASK;
cf               1458 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	cmd->tx_can.dlc = cf->can_dlc;
cf               1460 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	flags = (cf->can_id & CAN_EFF_FLAG ?
cf               1463 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	if (cf->can_id & CAN_RTR_FLAG)
cf               1466 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	flags |= (cf->can_id & CAN_ERR_FLAG ?
cf               1472 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	memcpy(cmd->tx_can.data, cf->data, *frame_len);
cf                351 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 	struct can_frame *cf = (struct can_frame *)skb->data;
cf                353 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 	*frame_len = cf->can_dlc;
cf                373 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 		if (cf->can_id & CAN_EFF_FLAG) {
cf                375 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 			cmd->u.tx_can.data[0] = (cf->can_id >> 24) & 0x1f;
cf                376 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 			cmd->u.tx_can.data[1] = (cf->can_id >> 18) & 0x3f;
cf                377 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 			cmd->u.tx_can.data[2] = (cf->can_id >> 14) & 0x0f;
cf                378 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 			cmd->u.tx_can.data[3] = (cf->can_id >> 6) & 0xff;
cf                379 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 			cmd->u.tx_can.data[4] = cf->can_id & 0x3f;
cf                382 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 			cmd->u.tx_can.data[0] = (cf->can_id >> 6) & 0x1f;
cf                383 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 			cmd->u.tx_can.data[1] = cf->can_id & 0x3f;
cf                386 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 		cmd->u.tx_can.data[5] = cf->can_dlc;
cf                387 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 		memcpy(&cmd->u.tx_can.data[6], cf->data, cf->can_dlc);
cf                389 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 		if (cf->can_id & CAN_RTR_FLAG)
cf                572 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 		struct can_frame *cf;
cf                574 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 		skb = alloc_can_err_skb(priv->netdev, &cf);
cf                576 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 			cf->can_id |= CAN_ERR_RESTARTED;
cf                579 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 			stats->rx_bytes += cf->can_dlc;
cf                629 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 					struct can_frame *cf)
cf                663 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 		can_change_state(priv->netdev, cf, tx_state, rx_state);
cf                695 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 	struct can_frame *cf;
cf                726 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 	skb = alloc_can_err_skb(priv->netdev, &cf);
cf                731 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 	memcpy(cf, &tmp_cf, sizeof(*cf));
cf                745 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 			cf->can_id |= CAN_ERR_RESTARTED;
cf                753 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 			cf->can_id |= CAN_ERR_BUSERROR | CAN_ERR_PROT;
cf                756 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 				cf->data[3] = CAN_ERR_PROT_LOC_ACK;
cf                758 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 				cf->data[3] = CAN_ERR_PROT_LOC_CRC_SEQ;
cf                760 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 				cf->data[2] |= CAN_ERR_PROT_FORM;
cf                762 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 				cf->data[2] |= CAN_ERR_PROT_STUFF;
cf                764 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 				cf->data[2] |= CAN_ERR_PROT_BIT0;
cf                766 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 				cf->data[2] |= CAN_ERR_PROT_BIT1;
cf                768 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 				cf->data[2] |= CAN_ERR_PROT_TX;
cf                773 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 			cf->can_id |= CAN_ERR_BUSERROR;
cf                777 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 	cf->data[6] = es->txerr;
cf                778 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 	cf->data[7] = es->rxerr;
cf                781 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 	stats->rx_bytes += cf->can_dlc;
cf                926 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 	struct can_frame *cf;
cf                967 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 	skb = alloc_can_skb(priv->netdev, &cf);
cf                975 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 		cf->can_id = le32_to_cpu(cmd->u.leaf.log_message.id);
cf                976 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 		if (cf->can_id & KVASER_EXTENDED_FRAME)
cf                977 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 			cf->can_id &= CAN_EFF_MASK | CAN_EFF_FLAG;
cf                979 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 			cf->can_id &= CAN_SFF_MASK;
cf                981 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 		cf->can_dlc = get_can_dlc(cmd->u.leaf.log_message.dlc);
cf                984 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 			cf->can_id |= CAN_RTR_FLAG;
cf                986 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 			memcpy(cf->data, &cmd->u.leaf.log_message.data,
cf                987 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 			       cf->can_dlc);
cf                989 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 		cf->can_id = ((rx_data[0] & 0x1f) << 6) | (rx_data[1] & 0x3f);
cf                992 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 			cf->can_id <<= 18;
cf                993 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 			cf->can_id |= ((rx_data[2] & 0x0f) << 14) |
cf                996 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 			cf->can_id |= CAN_EFF_FLAG;
cf                999 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 		cf->can_dlc = get_can_dlc(rx_data[5]);
cf               1002 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 			cf->can_id |= CAN_RTR_FLAG;
cf               1004 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 			memcpy(cf->data, &rx_data[6], cf->can_dlc);
cf               1008 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 	stats->rx_bytes += cf->can_dlc;
cf                175 drivers/net/can/usb/mcba_usb.c 							 struct can_frame *cf)
cf                185 drivers/net/can/usb/mcba_usb.c 			if (cf) {
cf                187 drivers/net/can/usb/mcba_usb.c 				ctx->dlc = cf->can_dlc;
cf                313 drivers/net/can/usb/mcba_usb.c 	struct can_frame *cf = (struct can_frame *)skb->data;
cf                325 drivers/net/can/usb/mcba_usb.c 	ctx = mcba_usb_get_free_ctx(priv, cf);
cf                331 drivers/net/can/usb/mcba_usb.c 	if (cf->can_id & CAN_EFF_FLAG) {
cf                337 drivers/net/can/usb/mcba_usb.c 		sid |= (cf->can_id & 0x1ffc0000) >> 13;
cf                339 drivers/net/can/usb/mcba_usb.c 		sid |= (cf->can_id & 0x30000) >> 16;
cf                343 drivers/net/can/usb/mcba_usb.c 		put_unaligned_be16(cf->can_id & 0xffff, &usb_msg.eid);
cf                348 drivers/net/can/usb/mcba_usb.c 		put_unaligned_be16((cf->can_id & CAN_SFF_MASK) << 5,
cf                353 drivers/net/can/usb/mcba_usb.c 	usb_msg.dlc = cf->can_dlc;
cf                355 drivers/net/can/usb/mcba_usb.c 	memcpy(usb_msg.data, cf->data, usb_msg.dlc);
cf                357 drivers/net/can/usb/mcba_usb.c 	if (cf->can_id & CAN_RTR_FLAG)
cf                421 drivers/net/can/usb/mcba_usb.c 	struct can_frame *cf;
cf                426 drivers/net/can/usb/mcba_usb.c 	skb = alloc_can_skb(priv->netdev, &cf);
cf                436 drivers/net/can/usb/mcba_usb.c 		cf->can_id = CAN_EFF_FLAG;
cf                439 drivers/net/can/usb/mcba_usb.c 		cf->can_id |= (sid & 0xffe0) << 13;
cf                441 drivers/net/can/usb/mcba_usb.c 		cf->can_id |= (sid & 3) << 16;
cf                443 drivers/net/can/usb/mcba_usb.c 		cf->can_id |= get_unaligned_be16(&msg->eid);
cf                448 drivers/net/can/usb/mcba_usb.c 		cf->can_id = (sid & 0xffe0) >> 5;
cf                452 drivers/net/can/usb/mcba_usb.c 		cf->can_id |= CAN_RTR_FLAG;
cf                454 drivers/net/can/usb/mcba_usb.c 	cf->can_dlc = get_can_dlc(msg->dlc & MCBA_DLC_MASK);
cf                456 drivers/net/can/usb/mcba_usb.c 	memcpy(cf->data, msg->data, cf->can_dlc);
cf                459 drivers/net/can/usb/mcba_usb.c 	stats->rx_bytes += cf->can_dlc;
cf                402 drivers/net/can/usb/peak_usb/pcan_usb.c 	struct can_frame *cf;
cf                479 drivers/net/can/usb/peak_usb/pcan_usb.c 	skb = alloc_can_err_skb(mc->netdev, &cf);
cf                485 drivers/net/can/usb/peak_usb/pcan_usb.c 		cf->can_id |= CAN_ERR_BUSOFF;
cf                491 drivers/net/can/usb/peak_usb/pcan_usb.c 		cf->can_id |= CAN_ERR_CRTL;
cf                492 drivers/net/can/usb/peak_usb/pcan_usb.c 		cf->data[1] |= CAN_ERR_CRTL_TX_PASSIVE |
cf                498 drivers/net/can/usb/peak_usb/pcan_usb.c 		cf->can_id |= CAN_ERR_CRTL;
cf                499 drivers/net/can/usb/peak_usb/pcan_usb.c 		cf->data[1] |= CAN_ERR_CRTL_TX_WARNING |
cf                505 drivers/net/can/usb/peak_usb/pcan_usb.c 		cf->can_id |= CAN_ERR_CRTL;
cf                506 drivers/net/can/usb/peak_usb/pcan_usb.c 		cf->data[1] = CAN_ERR_CRTL_ACTIVE;
cf                511 drivers/net/can/usb/peak_usb/pcan_usb.c 		cf->can_id |= CAN_ERR_CRTL;
cf                512 drivers/net/can/usb/peak_usb/pcan_usb.c 		cf->data[1] |= CAN_ERR_CRTL_RX_OVERFLOW;
cf                530 drivers/net/can/usb/peak_usb/pcan_usb.c 	mc->netdev->stats.rx_bytes += cf->can_dlc;
cf                614 drivers/net/can/usb/peak_usb/pcan_usb.c 	struct can_frame *cf;
cf                617 drivers/net/can/usb/peak_usb/pcan_usb.c 	skb = alloc_can_skb(mc->netdev, &cf);
cf                630 drivers/net/can/usb/peak_usb/pcan_usb.c 		cf->can_id = (le32_to_cpu(tmp32) >> 3) | CAN_EFF_FLAG;
cf                640 drivers/net/can/usb/peak_usb/pcan_usb.c 		cf->can_id = le16_to_cpu(tmp16) >> 5;
cf                643 drivers/net/can/usb/peak_usb/pcan_usb.c 	cf->can_dlc = get_can_dlc(rec_len);
cf                653 drivers/net/can/usb/peak_usb/pcan_usb.c 	memset(cf->data, 0x0, sizeof(cf->data));
cf                655 drivers/net/can/usb/peak_usb/pcan_usb.c 		cf->can_id |= CAN_RTR_FLAG;
cf                660 drivers/net/can/usb/peak_usb/pcan_usb.c 		memcpy(cf->data, mc->ptr, cf->can_dlc);
cf                670 drivers/net/can/usb/peak_usb/pcan_usb.c 	mc->netdev->stats.rx_bytes += cf->can_dlc;
cf                738 drivers/net/can/usb/peak_usb/pcan_usb.c 	struct can_frame *cf = (struct can_frame *)skb->data;
cf                747 drivers/net/can/usb/peak_usb/pcan_usb.c 	*pc = cf->can_dlc;
cf                748 drivers/net/can/usb/peak_usb/pcan_usb.c 	if (cf->can_id & CAN_RTR_FLAG)
cf                752 drivers/net/can/usb/peak_usb/pcan_usb.c 	if (cf->can_id & CAN_EFF_FLAG) {
cf                753 drivers/net/can/usb/peak_usb/pcan_usb.c 		__le32 tmp32 = cpu_to_le32((cf->can_id & CAN_ERR_MASK) << 3);
cf                759 drivers/net/can/usb/peak_usb/pcan_usb.c 		__le16 tmp16 = cpu_to_le16((cf->can_id & CAN_ERR_MASK) << 5);
cf                766 drivers/net/can/usb/peak_usb/pcan_usb.c 	if (!(cf->can_id & CAN_RTR_FLAG)) {
cf                767 drivers/net/can/usb/peak_usb/pcan_usb.c 		memcpy(pc, cf->data, cf->can_dlc);
cf                768 drivers/net/can/usb/peak_usb/pcan_usb.c 		pc += cf->can_dlc;
cf                528 drivers/net/can/usb/peak_usb/pcan_usb_fd.c 	struct can_frame *cf;
cf                558 drivers/net/can/usb/peak_usb/pcan_usb_fd.c 	skb = alloc_can_err_skb(netdev, &cf);
cf                560 drivers/net/can/usb/peak_usb/pcan_usb_fd.c 		can_change_state(netdev, cf, tx_state, rx_state);
cf                572 drivers/net/can/usb/peak_usb/pcan_usb_fd.c 	netdev->stats.rx_bytes += cf->can_dlc;
cf                600 drivers/net/can/usb/peak_usb/pcan_usb_fd.c 	struct can_frame *cf;
cf                604 drivers/net/can/usb/peak_usb/pcan_usb_fd.c 	skb = alloc_can_err_skb(netdev, &cf);
cf                608 drivers/net/can/usb/peak_usb/pcan_usb_fd.c 	cf->can_id |= CAN_ERR_CRTL;
cf                609 drivers/net/can/usb/peak_usb/pcan_usb_fd.c 	cf->data[1] |= CAN_ERR_CRTL_RX_OVERFLOW;
cf                764 drivers/net/can/usb/peak_usb/pcan_usb_pro.c 	struct can_frame *cf = (struct can_frame *)skb->data;
cf                770 drivers/net/can/usb/peak_usb/pcan_usb_pro.c 	if ((cf->can_id & CAN_RTR_FLAG) || (cf->can_dlc == 0))
cf                772 drivers/net/can/usb/peak_usb/pcan_usb_pro.c 	else if (cf->can_dlc <= 4)
cf                777 drivers/net/can/usb/peak_usb/pcan_usb_pro.c 	len = (dev->ctrl_idx << 4) | (cf->can_dlc & 0x0f);
cf                780 drivers/net/can/usb/peak_usb/pcan_usb_pro.c 	if (cf->can_id & CAN_EFF_FLAG)
cf                782 drivers/net/can/usb/peak_usb/pcan_usb_pro.c 	if (cf->can_id & CAN_RTR_FLAG)
cf                785 drivers/net/can/usb/peak_usb/pcan_usb_pro.c 	pcan_msg_add_rec(&usb_msg, data_type, 0, flags, len, cf->can_id,
cf                786 drivers/net/can/usb/peak_usb/pcan_usb_pro.c 			 cf->data);
cf                569 drivers/net/can/usb/ucan.c 	struct can_frame *cf;
cf                609 drivers/net/can/usb/ucan.c 	skb = alloc_can_skb(up->netdev, &cf);
cf                614 drivers/net/can/usb/ucan.c 	cf->can_id = canid;
cf                617 drivers/net/can/usb/ucan.c 	cf->can_dlc = ucan_get_can_dlc(&m->msg.can_msg, len);
cf                620 drivers/net/can/usb/ucan.c 	if (!(cf->can_id & CAN_RTR_FLAG) || (cf->can_id & CAN_ERR_FLAG))
cf                621 drivers/net/can/usb/ucan.c 		memcpy(cf->data, m->msg.can_msg.data, cf->can_dlc);
cf                625 drivers/net/can/usb/ucan.c 	stats->rx_bytes += cf->can_dlc;
cf               1049 drivers/net/can/usb/ucan.c 				       struct can_frame *cf,
cf               1075 drivers/net/can/usb/ucan.c 	m->msg.can_msg.id = cpu_to_le32(cf->can_id);
cf               1077 drivers/net/can/usb/ucan.c 	if (cf->can_id & CAN_RTR_FLAG) {
cf               1081 drivers/net/can/usb/ucan.c 		m->msg.can_msg.dlc = cf->can_dlc;
cf               1084 drivers/net/can/usb/ucan.c 			sizeof(m->msg.can_msg.id) + cf->can_dlc;
cf               1085 drivers/net/can/usb/ucan.c 		memcpy(m->msg.can_msg.data, cf->data, cf->can_dlc);
cf               1089 drivers/net/can/usb/ucan.c 	context->dlc = cf->can_dlc;
cf               1120 drivers/net/can/usb/ucan.c 	struct can_frame *cf = (struct can_frame *)skb->data;
cf               1134 drivers/net/can/usb/ucan.c 	urb = ucan_prepare_tx_urb(up, context, cf, echo_index);
cf                338 drivers/net/can/usb/usb_8dev.c 	struct can_frame *cf;
cf                356 drivers/net/can/usb/usb_8dev.c 	skb = alloc_can_err_skb(priv->netdev, &cf);
cf                363 drivers/net/can/usb/usb_8dev.c 		cf->can_id |= CAN_ERR_PROT;
cf                364 drivers/net/can/usb/usb_8dev.c 		cf->data[2] = CAN_ERR_PROT_ACTIVE;
cf                368 drivers/net/can/usb/usb_8dev.c 		cf->can_id |= CAN_ERR_BUSOFF;
cf                375 drivers/net/can/usb/usb_8dev.c 		cf->can_id |= CAN_ERR_CRTL;
cf                379 drivers/net/can/usb/usb_8dev.c 		cf->can_id |= CAN_ERR_PROT | CAN_ERR_BUSERROR;
cf                389 drivers/net/can/usb/usb_8dev.c 		cf->can_id |= CAN_ERR_ACK;
cf                393 drivers/net/can/usb/usb_8dev.c 		cf->data[3] = CAN_ERR_PROT_LOC_CRC_SEQ;
cf                397 drivers/net/can/usb/usb_8dev.c 		cf->data[2] |= CAN_ERR_PROT_BIT0;
cf                401 drivers/net/can/usb/usb_8dev.c 		cf->data[2] |= CAN_ERR_PROT_BIT1;
cf                405 drivers/net/can/usb/usb_8dev.c 		cf->data[2] |= CAN_ERR_PROT_FORM;
cf                409 drivers/net/can/usb/usb_8dev.c 		cf->data[2] |= CAN_ERR_PROT_STUFF;
cf                413 drivers/net/can/usb/usb_8dev.c 		cf->data[1] = CAN_ERR_CRTL_RX_OVERFLOW;
cf                419 drivers/net/can/usb/usb_8dev.c 		cf->data[1] = (txerr > rxerr) ?
cf                426 drivers/net/can/usb/usb_8dev.c 		cf->data[1] = (txerr > rxerr) ?
cf                438 drivers/net/can/usb/usb_8dev.c 		cf->data[2] |= CAN_ERR_PROT_TX;
cf                445 drivers/net/can/usb/usb_8dev.c 	cf->data[6] = txerr;
cf                446 drivers/net/can/usb/usb_8dev.c 	cf->data[7] = rxerr;
cf                452 drivers/net/can/usb/usb_8dev.c 	stats->rx_bytes += cf->can_dlc;
cf                460 drivers/net/can/usb/usb_8dev.c 	struct can_frame *cf;
cf                468 drivers/net/can/usb/usb_8dev.c 		skb = alloc_can_skb(priv->netdev, &cf);
cf                472 drivers/net/can/usb/usb_8dev.c 		cf->can_id = be32_to_cpu(msg->id);
cf                473 drivers/net/can/usb/usb_8dev.c 		cf->can_dlc = get_can_dlc(msg->dlc & 0xF);
cf                476 drivers/net/can/usb/usb_8dev.c 			cf->can_id |= CAN_EFF_FLAG;
cf                479 drivers/net/can/usb/usb_8dev.c 			cf->can_id |= CAN_RTR_FLAG;
cf                481 drivers/net/can/usb/usb_8dev.c 			memcpy(cf->data, msg->data, cf->can_dlc);
cf                484 drivers/net/can/usb/usb_8dev.c 		stats->rx_bytes += cf->can_dlc;
cf                604 drivers/net/can/usb/usb_8dev.c 	struct can_frame *cf = (struct can_frame *) skb->data;
cf                633 drivers/net/can/usb/usb_8dev.c 	if (cf->can_id & CAN_RTR_FLAG)
cf                636 drivers/net/can/usb/usb_8dev.c 	if (cf->can_id & CAN_EFF_FLAG)
cf                639 drivers/net/can/usb/usb_8dev.c 	msg->id = cpu_to_be32(cf->can_id & CAN_ERR_MASK);
cf                640 drivers/net/can/usb/usb_8dev.c 	msg->dlc = cf->can_dlc;
cf                641 drivers/net/can/usb/usb_8dev.c 	memcpy(msg->data, cf->data, cf->can_dlc);
cf                659 drivers/net/can/usb/usb_8dev.c 	context->dlc = cf->can_dlc;
cf                550 drivers/net/can/xilinx_can.c 	struct canfd_frame *cf = (struct canfd_frame *)skb->data;
cf                554 drivers/net/can/xilinx_can.c 	if (cf->can_id & CAN_EFF_FLAG) {
cf                556 drivers/net/can/xilinx_can.c 		id = ((cf->can_id & CAN_EFF_MASK) << XCAN_IDR_ID2_SHIFT) &
cf                558 drivers/net/can/xilinx_can.c 		id |= (((cf->can_id & CAN_EFF_MASK) >>
cf                567 drivers/net/can/xilinx_can.c 		if (cf->can_id & CAN_RTR_FLAG)
cf                572 drivers/net/can/xilinx_can.c 		id = ((cf->can_id & CAN_SFF_MASK) << XCAN_IDR_ID1_SHIFT) &
cf                575 drivers/net/can/xilinx_can.c 		if (cf->can_id & CAN_RTR_FLAG)
cf                580 drivers/net/can/xilinx_can.c 	dlc = can_len2dlc(cf->len) << XCAN_DLCR_DLC_SHIFT;
cf                582 drivers/net/can/xilinx_can.c 		if (cf->flags & CANFD_BRS)
cf                594 drivers/net/can/xilinx_can.c 		for (i = 0; i < cf->len; i += 4) {
cf                598 drivers/net/can/xilinx_can.c 					be32_to_cpup((__be32 *)(cf->data + i)));
cf                602 drivers/net/can/xilinx_can.c 		if (cf->len > 0)
cf                603 drivers/net/can/xilinx_can.c 			data[0] = be32_to_cpup((__be32 *)(cf->data + 0));
cf                604 drivers/net/can/xilinx_can.c 		if (cf->len > 4)
cf                605 drivers/net/can/xilinx_can.c 			data[1] = be32_to_cpup((__be32 *)(cf->data + 4));
cf                607 drivers/net/can/xilinx_can.c 		if (!(cf->can_id & CAN_RTR_FLAG)) {
cf                740 drivers/net/can/xilinx_can.c 	struct can_frame *cf;
cf                744 drivers/net/can/xilinx_can.c 	skb = alloc_can_skb(ndev, &cf);
cf                756 drivers/net/can/xilinx_can.c 	cf->can_dlc = get_can_dlc(dlc);
cf                761 drivers/net/can/xilinx_can.c 		cf->can_id = (id_xcan & XCAN_IDR_ID1_MASK) >> 3;
cf                762 drivers/net/can/xilinx_can.c 		cf->can_id |= (id_xcan & XCAN_IDR_ID2_MASK) >>
cf                764 drivers/net/can/xilinx_can.c 		cf->can_id |= CAN_EFF_FLAG;
cf                766 drivers/net/can/xilinx_can.c 			cf->can_id |= CAN_RTR_FLAG;
cf                769 drivers/net/can/xilinx_can.c 		cf->can_id = (id_xcan & XCAN_IDR_ID1_MASK) >>
cf                772 drivers/net/can/xilinx_can.c 			cf->can_id |= CAN_RTR_FLAG;
cf                779 drivers/net/can/xilinx_can.c 	if (!(cf->can_id & CAN_RTR_FLAG)) {
cf                781 drivers/net/can/xilinx_can.c 		if (cf->can_dlc > 0)
cf                782 drivers/net/can/xilinx_can.c 			*(__be32 *)(cf->data) = cpu_to_be32(data[0]);
cf                783 drivers/net/can/xilinx_can.c 		if (cf->can_dlc > 4)
cf                784 drivers/net/can/xilinx_can.c 			*(__be32 *)(cf->data + 4) = cpu_to_be32(data[1]);
cf                787 drivers/net/can/xilinx_can.c 	stats->rx_bytes += cf->can_dlc;
cf                809 drivers/net/can/xilinx_can.c 	struct canfd_frame *cf;
cf                816 drivers/net/can/xilinx_can.c 		skb = alloc_canfd_skb(ndev, &cf);
cf                818 drivers/net/can/xilinx_can.c 		skb = alloc_can_skb(ndev, (struct can_frame **)&cf);
cf                829 drivers/net/can/xilinx_can.c 		cf->len = can_dlc2len((dlc & XCAN_DLCR_DLC_MASK) >>
cf                832 drivers/net/can/xilinx_can.c 		cf->len = get_can_dlc((dlc & XCAN_DLCR_DLC_MASK) >>
cf                838 drivers/net/can/xilinx_can.c 		cf->can_id = (id_xcan & XCAN_IDR_ID1_MASK) >> 3;
cf                839 drivers/net/can/xilinx_can.c 		cf->can_id |= (id_xcan & XCAN_IDR_ID2_MASK) >>
cf                841 drivers/net/can/xilinx_can.c 		cf->can_id |= CAN_EFF_FLAG;
cf                843 drivers/net/can/xilinx_can.c 			cf->can_id |= CAN_RTR_FLAG;
cf                846 drivers/net/can/xilinx_can.c 		cf->can_id = (id_xcan & XCAN_IDR_ID1_MASK) >>
cf                850 drivers/net/can/xilinx_can.c 			cf->can_id |= CAN_RTR_FLAG;
cf                855 drivers/net/can/xilinx_can.c 		for (i = 0; i < cf->len; i += 4) {
cf                859 drivers/net/can/xilinx_can.c 			*(__be32 *)(cf->data + i) = cpu_to_be32(data[0]);
cf                863 drivers/net/can/xilinx_can.c 		for (i = 0; i < cf->len; i += 4) {
cf                866 drivers/net/can/xilinx_can.c 			*(__be32 *)(cf->data + i) = cpu_to_be32(data[0]);
cf                869 drivers/net/can/xilinx_can.c 	stats->rx_bytes += cf->len;
cf                911 drivers/net/can/xilinx_can.c 				 struct can_frame *cf)
cf                924 drivers/net/can/xilinx_can.c 	can_change_state(ndev, cf, tx_state, rx_state);
cf                926 drivers/net/can/xilinx_can.c 	if (cf) {
cf                927 drivers/net/can/xilinx_can.c 		cf->data[6] = txerr;
cf                928 drivers/net/can/xilinx_can.c 		cf->data[7] = rxerr;
cf                957 drivers/net/can/xilinx_can.c 		struct can_frame *cf;
cf                959 drivers/net/can/xilinx_can.c 		skb = alloc_can_err_skb(ndev, &cf);
cf                961 drivers/net/can/xilinx_can.c 		xcan_set_error_state(ndev, new_state, skb ? cf : NULL);
cf                967 drivers/net/can/xilinx_can.c 			stats->rx_bytes += cf->can_dlc;
cf                986 drivers/net/can/xilinx_can.c 	struct can_frame *cf;
cf                990 drivers/net/can/xilinx_can.c 	skb = alloc_can_err_skb(ndev, &cf);
cf               1002 drivers/net/can/xilinx_can.c 			cf->can_id |= CAN_ERR_BUSOFF;
cf               1007 drivers/net/can/xilinx_can.c 			xcan_set_error_state(ndev, new_state, skb ? cf : NULL);
cf               1014 drivers/net/can/xilinx_can.c 			cf->can_id |= CAN_ERR_LOSTARB;
cf               1015 drivers/net/can/xilinx_can.c 			cf->data[0] = CAN_ERR_LOSTARB_UNSPEC;
cf               1024 drivers/net/can/xilinx_can.c 			cf->can_id |= CAN_ERR_CRTL;
cf               1025 drivers/net/can/xilinx_can.c 			cf->data[1] |= CAN_ERR_CRTL_RX_OVERFLOW;
cf               1035 drivers/net/can/xilinx_can.c 			cf->can_id |= CAN_ERR_CRTL;
cf               1036 drivers/net/can/xilinx_can.c 			cf->data[1] |= CAN_ERR_CRTL_UNSPEC;
cf               1043 drivers/net/can/xilinx_can.c 			cf->can_id |= CAN_ERR_PROT | CAN_ERR_BUSERROR;
cf               1049 drivers/net/can/xilinx_can.c 				cf->can_id |= CAN_ERR_ACK;
cf               1050 drivers/net/can/xilinx_can.c 				cf->data[3] = CAN_ERR_PROT_LOC_ACK;
cf               1058 drivers/net/can/xilinx_can.c 				cf->can_id |= CAN_ERR_PROT;
cf               1059 drivers/net/can/xilinx_can.c 				cf->data[2] = CAN_ERR_PROT_BIT;
cf               1067 drivers/net/can/xilinx_can.c 				cf->can_id |= CAN_ERR_PROT;
cf               1068 drivers/net/can/xilinx_can.c 				cf->data[2] = CAN_ERR_PROT_STUFF;
cf               1076 drivers/net/can/xilinx_can.c 				cf->can_id |= CAN_ERR_PROT;
cf               1077 drivers/net/can/xilinx_can.c 				cf->data[2] = CAN_ERR_PROT_FORM;
cf               1085 drivers/net/can/xilinx_can.c 				cf->can_id |= CAN_ERR_PROT;
cf               1086 drivers/net/can/xilinx_can.c 				cf->data[3] = CAN_ERR_PROT_LOC_CRC_SEQ;
cf               1094 drivers/net/can/xilinx_can.c 		stats->rx_bytes += cf->can_dlc;
cf                220 drivers/net/ethernet/broadcom/bcmsysport.c 	STAT_MIB_RX("rx_control", mib.rx.cf),
cf                249 drivers/net/ethernet/broadcom/bcmsysport.c 	STAT_MIB_TX("tx_control", mib.tx.cf),
cf                548 drivers/net/ethernet/broadcom/bcmsysport.h 	u32	cf;		/* RO # of Received control frame pkt*/
cf                571 drivers/net/ethernet/broadcom/bcmsysport.h 	u32	cf;		/* RO # of xmited control frame count */
cf                802 drivers/net/ethernet/broadcom/genet/bcmgenet.c 	STAT_GENET_MIB_RX("rx_control", mib.rx.cf),
cf                831 drivers/net/ethernet/broadcom/genet/bcmgenet.c 	STAT_GENET_MIB_TX("tx_control", mib.tx.cf),
cf                 94 drivers/net/ethernet/broadcom/genet/bcmgenet.h 	u32	cf;		/* RO # of Received control frame pkt*/
cf                117 drivers/net/ethernet/broadcom/genet/bcmgenet.h 	u32	cf;		/* RO # of xmited control frame count */
cf               3987 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 	const struct firmware *cf;
cf               4034 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 	ret = request_firmware(&cf, fw_config_file, adapter->pdev_dev);
cf               4046 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 		if (cf->size >= FLASH_CFG_MAX_SIZE)
cf               4064 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 				size_t resid = cf->size & 0x3;
cf               4065 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 				size_t size = cf->size & ~0x3;
cf               4066 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 				__be32 *data = (__be32 *)cf->data;
cf               4093 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 		release_firmware(cf);
cf               3324 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 	struct i40e_cloud_filter cfilter, *cf = NULL;
cf               3410 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 	hlist_for_each_entry_safe(cf, node,
cf               3412 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 		if (cf->seid != cfilter.seid)
cf               3415 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 			if (cfilter.dst_port != cf->dst_port)
cf               3418 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 			if (!ether_addr_equal(cf->src_mac, cfilter.src_mac))
cf               3422 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 			if (memcmp(&cfilter.ip.v4.dst_ip, &cf->ip.v4.dst_ip,
cf               3427 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 			if (memcmp(&cfilter.ip.v6.dst_ip6, &cf->ip.v6.dst_ip6,
cf               3431 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 			if (cfilter.vlan_id != cf->vlan_id)
cf               3434 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 		hlist_del(&cf->cloud_node);
cf               3435 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 		kfree(cf);
cf                973 drivers/net/ethernet/intel/iavf/iavf_main.c 	struct iavf_cloud_filter *cf;
cf               1004 drivers/net/ethernet/intel/iavf/iavf_main.c 	list_for_each_entry(cf, &adapter->cloud_filter_list, list) {
cf               1005 drivers/net/ethernet/intel/iavf/iavf_main.c 		cf->del = true;
cf               1992 drivers/net/ethernet/intel/iavf/iavf_main.c 	struct iavf_cloud_filter *cf, *cftmp;
cf               2028 drivers/net/ethernet/intel/iavf/iavf_main.c 	list_for_each_entry_safe(cf, cftmp, &adapter->cloud_filter_list, list) {
cf               2029 drivers/net/ethernet/intel/iavf/iavf_main.c 		list_del(&cf->list);
cf               2030 drivers/net/ethernet/intel/iavf/iavf_main.c 		kfree(cf);
cf               2069 drivers/net/ethernet/intel/iavf/iavf_main.c 	struct iavf_cloud_filter *cf;
cf               2208 drivers/net/ethernet/intel/iavf/iavf_main.c 		list_for_each_entry(cf, &adapter->cloud_filter_list, list) {
cf               2209 drivers/net/ethernet/intel/iavf/iavf_main.c 			cf->add = true;
cf               2571 drivers/net/ethernet/intel/iavf/iavf_main.c 	struct iavf_cloud_filter *cf, *cftmp;
cf               2574 drivers/net/ethernet/intel/iavf/iavf_main.c 	list_for_each_entry_safe(cf, cftmp, &adapter->cloud_filter_list,
cf               2576 drivers/net/ethernet/intel/iavf/iavf_main.c 		list_del(&cf->list);
cf               2577 drivers/net/ethernet/intel/iavf/iavf_main.c 		kfree(cf);
cf               3860 drivers/net/ethernet/intel/iavf/iavf_main.c 	struct iavf_cloud_filter *cf, *cftmp;
cf               3933 drivers/net/ethernet/intel/iavf/iavf_main.c 	list_for_each_entry_safe(cf, cftmp, &adapter->cloud_filter_list, list) {
cf               3934 drivers/net/ethernet/intel/iavf/iavf_main.c 		list_del(&cf->list);
cf               3935 drivers/net/ethernet/intel/iavf/iavf_main.c 		kfree(cf);
cf               1069 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 	struct iavf_cloud_filter *cf;
cf               1079 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 	list_for_each_entry(cf, &adapter->cloud_filter_list, list) {
cf               1080 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 		if (cf->add) {
cf               1096 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 	list_for_each_entry(cf, &adapter->cloud_filter_list, list) {
cf               1097 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 		if (cf->add) {
cf               1098 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 			memcpy(f, &cf->f, sizeof(struct virtchnl_filter));
cf               1099 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 			cf->add = false;
cf               1100 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 			cf->state = __IAVF_CF_ADD_PENDING;
cf               1117 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 	struct iavf_cloud_filter *cf, *cftmp;
cf               1127 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 	list_for_each_entry(cf, &adapter->cloud_filter_list, list) {
cf               1128 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 		if (cf->del) {
cf               1144 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 	list_for_each_entry_safe(cf, cftmp, &adapter->cloud_filter_list, list) {
cf               1145 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 		if (cf->del) {
cf               1146 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 			memcpy(f, &cf->f, sizeof(struct virtchnl_filter));
cf               1147 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 			cf->del = false;
cf               1148 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 			cf->state = __IAVF_CF_DEL_PENDING;
cf               1282 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 			struct iavf_cloud_filter *cf, *cftmp;
cf               1284 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 			list_for_each_entry_safe(cf, cftmp,
cf               1287 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 				if (cf->state == __IAVF_CF_ADD_PENDING) {
cf               1288 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 					cf->state = __IAVF_CF_INVALID;
cf               1293 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 								&cf->f);
cf               1294 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 					list_del(&cf->list);
cf               1295 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 					kfree(cf);
cf               1302 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 			struct iavf_cloud_filter *cf;
cf               1304 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 			list_for_each_entry(cf, &adapter->cloud_filter_list,
cf               1306 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 				if (cf->state == __IAVF_CF_DEL_PENDING) {
cf               1307 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 					cf->state = __IAVF_CF_ACTIVE;
cf               1312 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 								&cf->f);
cf               1428 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 		struct iavf_cloud_filter *cf;
cf               1430 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 		list_for_each_entry(cf, &adapter->cloud_filter_list, list) {
cf               1431 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 			if (cf->state == __IAVF_CF_ADD_PENDING)
cf               1432 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 				cf->state = __IAVF_CF_ACTIVE;
cf               1437 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 		struct iavf_cloud_filter *cf, *cftmp;
cf               1439 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 		list_for_each_entry_safe(cf, cftmp, &adapter->cloud_filter_list,
cf               1441 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 			if (cf->state == __IAVF_CF_DEL_PENDING) {
cf               1442 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 				cf->state = __IAVF_CF_INVALID;
cf               1443 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 				list_del(&cf->list);
cf               1444 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 				kfree(cf);
cf                 35 drivers/net/ethernet/mscc/ocelot_police.c 	bool cf;  /* Coupling flag (ignored in SLB mode) */
cf                 46 drivers/net/ethernet/mscc/ocelot_police.c 	u32 cf = 0, cir_ena = 0, frm_mode = POL_MODE_LINERATE;
cf                 79 drivers/net/ethernet/mscc/ocelot_police.c 				cf = conf->cf;
cf                 80 drivers/net/ethernet/mscc/ocelot_police.c 				if (cf)
cf                147 drivers/net/ethernet/mscc/ocelot_police.c 		 (cf ? ANA_POL_MODE_CFG_DLB_COUPLED : 0) |
cf                442 drivers/net/fddi/skfp/h/smc.h 	struct s_cfm	cf ;		/* cfm/cem */
cf                395 drivers/net/wireless/marvell/libertas/cfg.c 	struct mrvl_ie_cf_param_set *cf = (void *)tlv;
cf                405 drivers/net/wireless/marvell/libertas/cfg.c 	cf->header.type = cpu_to_le16(TLV_TYPE_CF);
cf                406 drivers/net/wireless/marvell/libertas/cfg.c 	cf->header.len = cpu_to_le16(sizeof(*cf)-sizeof(cf->header));
cf                407 drivers/net/wireless/marvell/libertas/cfg.c 	return sizeof(*cf);
cf                 34 drivers/net/wireless/marvell/libertas/types.h 	struct ieee_ie_cf_param_set cf;
cf                 53 drivers/pcmcia/at91_cf.c static inline int at91_cf_present(struct at91_cf_socket *cf)
cf                 55 drivers/pcmcia/at91_cf.c 	return !gpio_get_value(cf->board->det_pin);
cf                 67 drivers/pcmcia/at91_cf.c 	struct at91_cf_socket *cf = _cf;
cf                 69 drivers/pcmcia/at91_cf.c 	if (irq == gpio_to_irq(cf->board->det_pin)) {
cf                 70 drivers/pcmcia/at91_cf.c 		unsigned present = at91_cf_present(cf);
cf                 73 drivers/pcmcia/at91_cf.c 		if (present != cf->present) {
cf                 74 drivers/pcmcia/at91_cf.c 			cf->present = present;
cf                 75 drivers/pcmcia/at91_cf.c 			dev_dbg(&cf->pdev->dev, "card %s\n",
cf                 77 drivers/pcmcia/at91_cf.c 			pcmcia_parse_events(&cf->socket, SS_DETECT);
cf                 86 drivers/pcmcia/at91_cf.c 	struct at91_cf_socket	*cf;
cf                 91 drivers/pcmcia/at91_cf.c 	cf = container_of(s, struct at91_cf_socket, socket);
cf                 94 drivers/pcmcia/at91_cf.c 	if (at91_cf_present(cf)) {
cf                 95 drivers/pcmcia/at91_cf.c 		int rdy	= gpio_is_valid(cf->board->irq_pin);	/* RDY/nIRQ */
cf                 96 drivers/pcmcia/at91_cf.c 		int vcc	= gpio_is_valid(cf->board->vcc_pin);
cf                 99 drivers/pcmcia/at91_cf.c 		if (!rdy || gpio_get_value(cf->board->irq_pin))
cf                101 drivers/pcmcia/at91_cf.c 		if (!vcc || gpio_get_value(cf->board->vcc_pin))
cf                112 drivers/pcmcia/at91_cf.c 	struct at91_cf_socket	*cf;
cf                114 drivers/pcmcia/at91_cf.c 	cf = container_of(sock, struct at91_cf_socket, socket);
cf                117 drivers/pcmcia/at91_cf.c 	if (gpio_is_valid(cf->board->vcc_pin)) {
cf                120 drivers/pcmcia/at91_cf.c 			gpio_set_value(cf->board->vcc_pin, 0);
cf                123 drivers/pcmcia/at91_cf.c 			gpio_set_value(cf->board->vcc_pin, 1);
cf                131 drivers/pcmcia/at91_cf.c 	gpio_set_value(cf->board->rst_pin, s->flags & SS_RESET);
cf                133 drivers/pcmcia/at91_cf.c 	dev_dbg(&cf->pdev->dev, "Vcc %d, io_irq %d, flags %04x csc %04x\n",
cf                147 drivers/pcmcia/at91_cf.c 	struct at91_cf_socket	*cf;
cf                150 drivers/pcmcia/at91_cf.c 	cf = container_of(s, struct at91_cf_socket, socket);
cf                167 drivers/pcmcia/at91_cf.c 		dev_dbg(&cf->pdev->dev, "8bit i/o bus\n");
cf                170 drivers/pcmcia/at91_cf.c 		dev_dbg(&cf->pdev->dev, "16bit i/o bus\n");
cf                172 drivers/pcmcia/at91_cf.c 	regmap_update_bits(mc, AT91_MC_SMC_CSR(cf->board->chipselect),
cf                175 drivers/pcmcia/at91_cf.c 	io->start = cf->socket.io_offset;
cf                185 drivers/pcmcia/at91_cf.c 	struct at91_cf_socket	*cf;
cf                190 drivers/pcmcia/at91_cf.c 	cf = container_of(s, struct at91_cf_socket, socket);
cf                194 drivers/pcmcia/at91_cf.c 		map->static_start = cf->phys_baseaddr + CF_ATTR_PHYS;
cf                196 drivers/pcmcia/at91_cf.c 		map->static_start = cf->phys_baseaddr + CF_MEM_PHYS;
cf                247 drivers/pcmcia/at91_cf.c 	struct at91_cf_socket	*cf;
cf                267 drivers/pcmcia/at91_cf.c 	cf = devm_kzalloc(&pdev->dev, sizeof(*cf), GFP_KERNEL);
cf                268 drivers/pcmcia/at91_cf.c 	if (!cf)
cf                271 drivers/pcmcia/at91_cf.c 	cf->board = board;
cf                272 drivers/pcmcia/at91_cf.c 	cf->pdev = pdev;
cf                273 drivers/pcmcia/at91_cf.c 	cf->phys_baseaddr = io->start;
cf                274 drivers/pcmcia/at91_cf.c 	platform_set_drvdata(pdev, cf);
cf                282 drivers/pcmcia/at91_cf.c 					at91_cf_irq, 0, "at91_cf detect", cf);
cf                310 drivers/pcmcia/at91_cf.c 					at91_cf_irq, IRQF_SHARED, "at91_cf", cf);
cf                313 drivers/pcmcia/at91_cf.c 		cf->socket.pci_irq = gpio_to_irq(board->irq_pin);
cf                315 drivers/pcmcia/at91_cf.c 		cf->socket.pci_irq = nr_irqs + 1;
cf                321 drivers/pcmcia/at91_cf.c 	cf->socket.io_offset = 0x10000;
cf                322 drivers/pcmcia/at91_cf.c 	status = pci_ioremap_io(0x10000, cf->phys_baseaddr + CF_IO_PHYS);
cf                335 drivers/pcmcia/at91_cf.c 	cf->socket.owner = THIS_MODULE;
cf                336 drivers/pcmcia/at91_cf.c 	cf->socket.dev.parent = &pdev->dev;
cf                337 drivers/pcmcia/at91_cf.c 	cf->socket.ops = &at91_cf_ops;
cf                338 drivers/pcmcia/at91_cf.c 	cf->socket.resource_ops = &pccard_static_ops;
cf                339 drivers/pcmcia/at91_cf.c 	cf->socket.features = SS_CAP_PCCARD | SS_CAP_STATIC_MAP
cf                341 drivers/pcmcia/at91_cf.c 	cf->socket.map_size = SZ_2K;
cf                342 drivers/pcmcia/at91_cf.c 	cf->socket.io[0].res = io;
cf                344 drivers/pcmcia/at91_cf.c 	status = pcmcia_register_socket(&cf->socket);
cf                357 drivers/pcmcia/at91_cf.c 	struct at91_cf_socket	*cf = platform_get_drvdata(pdev);
cf                359 drivers/pcmcia/at91_cf.c 	pcmcia_unregister_socket(&cf->socket);
cf                369 drivers/pcmcia/at91_cf.c 	struct at91_cf_socket	*cf = platform_get_drvdata(pdev);
cf                370 drivers/pcmcia/at91_cf.c 	struct at91_cf_data	*board = cf->board;
cf                382 drivers/pcmcia/at91_cf.c 	struct at91_cf_socket	*cf = platform_get_drvdata(pdev);
cf                383 drivers/pcmcia/at91_cf.c 	struct at91_cf_data	*board = cf->board;
cf                 55 drivers/pcmcia/electra_cf.c static int electra_cf_present(struct electra_cf_socket *cf)
cf                 59 drivers/pcmcia/electra_cf.c 	gpio = in_le32(cf->gpio_base+0x40);
cf                 60 drivers/pcmcia/electra_cf.c 	return !(gpio & (1 << cf->gpio_detect));
cf                 71 drivers/pcmcia/electra_cf.c 	struct electra_cf_socket *cf = from_timer(cf, t, timer);
cf                 72 drivers/pcmcia/electra_cf.c 	int present = electra_cf_present(cf);
cf                 74 drivers/pcmcia/electra_cf.c 	if (present != cf->present) {
cf                 75 drivers/pcmcia/electra_cf.c 		cf->present = present;
cf                 76 drivers/pcmcia/electra_cf.c 		pcmcia_parse_events(&cf->socket, SS_DETECT);
cf                 79 drivers/pcmcia/electra_cf.c 	if (cf->active)
cf                 80 drivers/pcmcia/electra_cf.c 		mod_timer(&cf->timer, jiffies + POLL_INTERVAL);
cf                 85 drivers/pcmcia/electra_cf.c 	struct electra_cf_socket *cf = _cf;
cf                 87 drivers/pcmcia/electra_cf.c 	electra_cf_timer(&cf->timer);
cf                 93 drivers/pcmcia/electra_cf.c 	struct electra_cf_socket *cf;
cf                 98 drivers/pcmcia/electra_cf.c 	cf = container_of(s, struct electra_cf_socket, socket);
cf                101 drivers/pcmcia/electra_cf.c 	if (electra_cf_present(cf)) {
cf                104 drivers/pcmcia/electra_cf.c 		s->pci_irq = cf->irq;
cf                115 drivers/pcmcia/electra_cf.c 	struct electra_cf_socket *cf;
cf                117 drivers/pcmcia/electra_cf.c 	cf = container_of(sock, struct electra_cf_socket, socket);
cf                127 drivers/pcmcia/electra_cf.c 		gpio = (1 << cf->gpio_3v);
cf                130 drivers/pcmcia/electra_cf.c 		gpio = (1 << cf->gpio_5v);
cf                136 drivers/pcmcia/electra_cf.c 	gpio |= 1 << (cf->gpio_3v + 16); /* enwr */
cf                137 drivers/pcmcia/electra_cf.c 	gpio |= 1 << (cf->gpio_5v + 16); /* enwr */
cf                138 drivers/pcmcia/electra_cf.c 	out_le32(cf->gpio_base+0x90, gpio);
cf                155 drivers/pcmcia/electra_cf.c 	struct electra_cf_socket *cf;
cf                159 drivers/pcmcia/electra_cf.c 	cf = container_of(s, struct electra_cf_socket, socket);
cf                160 drivers/pcmcia/electra_cf.c 	map->static_start = cf->mem_phys;
cf                179 drivers/pcmcia/electra_cf.c 	struct electra_cf_socket   *cf;
cf                194 drivers/pcmcia/electra_cf.c 	cf = kzalloc(sizeof(*cf), GFP_KERNEL);
cf                195 drivers/pcmcia/electra_cf.c 	if (!cf)
cf                198 drivers/pcmcia/electra_cf.c 	timer_setup(&cf->timer, electra_cf_timer, 0);
cf                199 drivers/pcmcia/electra_cf.c 	cf->irq = 0;
cf                201 drivers/pcmcia/electra_cf.c 	cf->ofdev = ofdev;
cf                202 drivers/pcmcia/electra_cf.c 	cf->mem_phys = mem.start;
cf                203 drivers/pcmcia/electra_cf.c 	cf->mem_size = PAGE_ALIGN(resource_size(&mem));
cf                204 drivers/pcmcia/electra_cf.c 	cf->mem_base = ioremap(cf->mem_phys, cf->mem_size);
cf                205 drivers/pcmcia/electra_cf.c 	cf->io_size = PAGE_ALIGN(resource_size(&io));
cf                207 drivers/pcmcia/electra_cf.c 	area = __get_vm_area(cf->io_size, 0, PHB_IO_BASE, PHB_IO_END);
cf                213 drivers/pcmcia/electra_cf.c 	cf->io_virt = (void __iomem *)(area->addr);
cf                215 drivers/pcmcia/electra_cf.c 	cf->gpio_base = ioremap(0xfc103000, 0x1000);
cf                216 drivers/pcmcia/electra_cf.c 	dev_set_drvdata(device, cf);
cf                218 drivers/pcmcia/electra_cf.c 	if (!cf->mem_base || !cf->io_virt || !cf->gpio_base ||
cf                219 drivers/pcmcia/electra_cf.c 	    (__ioremap_at(io.start, cf->io_virt, cf->io_size,
cf                227 drivers/pcmcia/electra_cf.c 	cf->io_base = (unsigned long)cf->io_virt - VMALLOC_END;
cf                229 drivers/pcmcia/electra_cf.c 	cf->iomem.start = (unsigned long)cf->mem_base;
cf                230 drivers/pcmcia/electra_cf.c 	cf->iomem.end = (unsigned long)cf->mem_base + (mem.end - mem.start);
cf                231 drivers/pcmcia/electra_cf.c 	cf->iomem.flags = IORESOURCE_MEM;
cf                233 drivers/pcmcia/electra_cf.c 	cf->irq = irq_of_parse_and_map(np, 0);
cf                235 drivers/pcmcia/electra_cf.c 	status = request_irq(cf->irq, electra_cf_irq, IRQF_SHARED,
cf                236 drivers/pcmcia/electra_cf.c 			     driver_name, cf);
cf                242 drivers/pcmcia/electra_cf.c 	cf->socket.pci_irq = cf->irq;
cf                247 drivers/pcmcia/electra_cf.c 	cf->gpio_detect = *prop;
cf                252 drivers/pcmcia/electra_cf.c 	cf->gpio_vsense = *prop;
cf                257 drivers/pcmcia/electra_cf.c 	cf->gpio_3v = *prop;
cf                262 drivers/pcmcia/electra_cf.c 	cf->gpio_5v = *prop;
cf                264 drivers/pcmcia/electra_cf.c 	cf->socket.io_offset = cf->io_base;
cf                267 drivers/pcmcia/electra_cf.c 	if (!request_mem_region(cf->mem_phys, cf->mem_size, driver_name)) {
cf                273 drivers/pcmcia/electra_cf.c 	if (!request_region(cf->io_base, cf->io_size, driver_name)) {
cf                279 drivers/pcmcia/electra_cf.c 	cf->socket.owner = THIS_MODULE;
cf                280 drivers/pcmcia/electra_cf.c 	cf->socket.dev.parent = &ofdev->dev;
cf                281 drivers/pcmcia/electra_cf.c 	cf->socket.ops = &electra_cf_ops;
cf                282 drivers/pcmcia/electra_cf.c 	cf->socket.resource_ops = &pccard_static_ops;
cf                283 drivers/pcmcia/electra_cf.c 	cf->socket.features = SS_CAP_PCCARD | SS_CAP_STATIC_MAP |
cf                285 drivers/pcmcia/electra_cf.c 	cf->socket.map_size = 0x800;
cf                287 drivers/pcmcia/electra_cf.c 	status = pcmcia_register_socket(&cf->socket);
cf                294 drivers/pcmcia/electra_cf.c 		 cf->mem_phys, io.start, cf->irq);
cf                296 drivers/pcmcia/electra_cf.c 	cf->active = 1;
cf                297 drivers/pcmcia/electra_cf.c 	electra_cf_timer(&cf->timer);
cf                301 drivers/pcmcia/electra_cf.c 	release_region(cf->io_base, cf->io_size);
cf                303 drivers/pcmcia/electra_cf.c 	release_mem_region(cf->mem_phys, cf->mem_size);
cf                305 drivers/pcmcia/electra_cf.c 	if (cf->irq)
cf                306 drivers/pcmcia/electra_cf.c 		free_irq(cf->irq, cf);
cf                308 drivers/pcmcia/electra_cf.c 	if (cf->io_virt)
cf                309 drivers/pcmcia/electra_cf.c 		__iounmap_at(cf->io_virt, cf->io_size);
cf                310 drivers/pcmcia/electra_cf.c 	if (cf->mem_base)
cf                311 drivers/pcmcia/electra_cf.c 		iounmap(cf->mem_base);
cf                312 drivers/pcmcia/electra_cf.c 	if (cf->gpio_base)
cf                313 drivers/pcmcia/electra_cf.c 		iounmap(cf->gpio_base);
cf                316 drivers/pcmcia/electra_cf.c 	kfree(cf);
cf                324 drivers/pcmcia/electra_cf.c 	struct electra_cf_socket *cf;
cf                326 drivers/pcmcia/electra_cf.c 	cf = dev_get_drvdata(device);
cf                328 drivers/pcmcia/electra_cf.c 	cf->active = 0;
cf                329 drivers/pcmcia/electra_cf.c 	pcmcia_unregister_socket(&cf->socket);
cf                330 drivers/pcmcia/electra_cf.c 	free_irq(cf->irq, cf);
cf                331 drivers/pcmcia/electra_cf.c 	del_timer_sync(&cf->timer);
cf                333 drivers/pcmcia/electra_cf.c 	__iounmap_at(cf->io_virt, cf->io_size);
cf                334 drivers/pcmcia/electra_cf.c 	iounmap(cf->mem_base);
cf                335 drivers/pcmcia/electra_cf.c 	iounmap(cf->gpio_base);
cf                336 drivers/pcmcia/electra_cf.c 	release_mem_region(cf->mem_phys, cf->mem_size);
cf                337 drivers/pcmcia/electra_cf.c 	release_region(cf->io_base, cf->io_size);
cf                339 drivers/pcmcia/electra_cf.c 	kfree(cf);
cf                 81 drivers/pcmcia/omap_cf.c 	struct omap_cf_socket	*cf = from_timer(cf, t, timer);
cf                 84 drivers/pcmcia/omap_cf.c 	if (present != cf->present) {
cf                 85 drivers/pcmcia/omap_cf.c 		cf->present = present;
cf                 88 drivers/pcmcia/omap_cf.c 		pcmcia_parse_events(&cf->socket, SS_DETECT);
cf                 91 drivers/pcmcia/omap_cf.c 	if (cf->active)
cf                 92 drivers/pcmcia/omap_cf.c 		mod_timer(&cf->timer, jiffies + POLL_INTERVAL);
cf                101 drivers/pcmcia/omap_cf.c 	struct omap_cf_socket *cf = (struct omap_cf_socket *)_cf;
cf                103 drivers/pcmcia/omap_cf.c 	omap_cf_timer(&cf->timer);
cf                114 drivers/pcmcia/omap_cf.c 		struct omap_cf_socket	*cf;
cf                117 drivers/pcmcia/omap_cf.c 		cf = container_of(s, struct omap_cf_socket, socket);
cf                119 drivers/pcmcia/omap_cf.c 		s->pci_irq = cf->irq;
cf                162 drivers/pcmcia/omap_cf.c 	struct omap_cf_socket	*cf;
cf                164 drivers/pcmcia/omap_cf.c 	cf = container_of(s, struct omap_cf_socket, socket);
cf                166 drivers/pcmcia/omap_cf.c 	io->start = cf->phys_cf + SZ_4K;
cf                174 drivers/pcmcia/omap_cf.c 	struct omap_cf_socket	*cf;
cf                178 drivers/pcmcia/omap_cf.c 	cf = container_of(s, struct omap_cf_socket, socket);
cf                179 drivers/pcmcia/omap_cf.c 	map->static_start = cf->phys_cf;
cf                205 drivers/pcmcia/omap_cf.c 	struct omap_cf_socket	*cf;
cf                218 drivers/pcmcia/omap_cf.c 	cf = kzalloc(sizeof *cf, GFP_KERNEL);
cf                219 drivers/pcmcia/omap_cf.c 	if (!cf)
cf                221 drivers/pcmcia/omap_cf.c 	timer_setup(&cf->timer, omap_cf_timer, 0);
cf                223 drivers/pcmcia/omap_cf.c 	cf->pdev = pdev;
cf                224 drivers/pcmcia/omap_cf.c 	platform_set_drvdata(pdev, cf);
cf                228 drivers/pcmcia/omap_cf.c 			driver_name, cf);
cf                231 drivers/pcmcia/omap_cf.c 	cf->irq = irq;
cf                232 drivers/pcmcia/omap_cf.c 	cf->socket.pci_irq = irq;
cf                237 drivers/pcmcia/omap_cf.c 		cf->phys_cf = OMAP_CS1_PHYS;
cf                240 drivers/pcmcia/omap_cf.c 		cf->phys_cf = OMAP_CS2_PHYS;
cf                243 drivers/pcmcia/omap_cf.c 		cf->phys_cf = omap_cs3_phys();
cf                248 drivers/pcmcia/omap_cf.c 	cf->iomem.start = cf->phys_cf;
cf                249 drivers/pcmcia/omap_cf.c 	cf->iomem.end = cf->iomem.end + SZ_8K - 1;
cf                250 drivers/pcmcia/omap_cf.c 	cf->iomem.flags = IORESOURCE_MEM;
cf                253 drivers/pcmcia/omap_cf.c 	cf->socket.io_offset = (unsigned long)
cf                254 drivers/pcmcia/omap_cf.c 			ioremap(cf->phys_cf + SZ_4K, SZ_2K);
cf                255 drivers/pcmcia/omap_cf.c 	if (!cf->socket.io_offset)
cf                258 drivers/pcmcia/omap_cf.c 	if (!request_mem_region(cf->phys_cf, SZ_8K, driver_name))
cf                288 drivers/pcmcia/omap_cf.c 	cf->socket.owner = THIS_MODULE;
cf                289 drivers/pcmcia/omap_cf.c 	cf->socket.dev.parent = &pdev->dev;
cf                290 drivers/pcmcia/omap_cf.c 	cf->socket.ops = &omap_cf_ops;
cf                291 drivers/pcmcia/omap_cf.c 	cf->socket.resource_ops = &pccard_static_ops;
cf                292 drivers/pcmcia/omap_cf.c 	cf->socket.features = SS_CAP_PCCARD | SS_CAP_STATIC_MAP
cf                294 drivers/pcmcia/omap_cf.c 	cf->socket.map_size = SZ_2K;
cf                295 drivers/pcmcia/omap_cf.c 	cf->socket.io[0].res = &cf->iomem;
cf                297 drivers/pcmcia/omap_cf.c 	status = pcmcia_register_socket(&cf->socket);
cf                301 drivers/pcmcia/omap_cf.c 	cf->active = 1;
cf                302 drivers/pcmcia/omap_cf.c 	mod_timer(&cf->timer, jiffies + POLL_INTERVAL);
cf                306 drivers/pcmcia/omap_cf.c 	release_mem_region(cf->phys_cf, SZ_8K);
cf                308 drivers/pcmcia/omap_cf.c 	if (cf->socket.io_offset)
cf                309 drivers/pcmcia/omap_cf.c 		iounmap((void __iomem *) cf->socket.io_offset);
cf                310 drivers/pcmcia/omap_cf.c 	free_irq(irq, cf);
cf                312 drivers/pcmcia/omap_cf.c 	kfree(cf);
cf                318 drivers/pcmcia/omap_cf.c 	struct omap_cf_socket *cf = platform_get_drvdata(pdev);
cf                320 drivers/pcmcia/omap_cf.c 	cf->active = 0;
cf                321 drivers/pcmcia/omap_cf.c 	pcmcia_unregister_socket(&cf->socket);
cf                322 drivers/pcmcia/omap_cf.c 	del_timer_sync(&cf->timer);
cf                323 drivers/pcmcia/omap_cf.c 	iounmap((void __iomem *) cf->socket.io_offset);
cf                324 drivers/pcmcia/omap_cf.c 	release_mem_region(cf->phys_cf, SZ_8K);
cf                325 drivers/pcmcia/omap_cf.c 	free_irq(cf->irq, cf);
cf                326 drivers/pcmcia/omap_cf.c 	kfree(cf);
cf               1403 drivers/pinctrl/sh-pfc/pfc-emev2.c 	SH_PFC_FUNCTION(cf),
cf               1971 drivers/scsi/csiostor/csio_hw.c 	const struct firmware *cf;
cf               1984 drivers/scsi/csiostor/csio_hw.c 	if (request_firmware(&cf, fw_cfg_file, dev) < 0) {
cf               1990 drivers/scsi/csiostor/csio_hw.c 	if (cf->size%4 != 0)
cf               1991 drivers/scsi/csiostor/csio_hw.c 		value_to_add = 4 - (cf->size % 4);
cf               1993 drivers/scsi/csiostor/csio_hw.c 	cfg_data = kzalloc(cf->size+value_to_add, GFP_KERNEL);
cf               1999 drivers/scsi/csiostor/csio_hw.c 	memcpy((void *)cfg_data, (const void *)cf->data, cf->size);
cf               2009 drivers/scsi/csiostor/csio_hw.c 				cf->size + value_to_add, cfg_data);
cf               2016 drivers/scsi/csiostor/csio_hw.c 		size_t size = cf->size & ~0x3;
cf               2031 drivers/scsi/csiostor/csio_hw.c 	release_firmware(cf);
cf                645 drivers/staging/media/ipu3/include/intel-ipu3.h 	__u32 cf:13;
cf                845 drivers/usb/core/config.c 		struct usb_host_config *cf = &dev->config[c];
cf                847 drivers/usb/core/config.c 		kfree(cf->string);
cf                848 drivers/usb/core/config.c 		for (i = 0; i < cf->desc.bNumInterfaces; i++) {
cf                849 drivers/usb/core/config.c 			if (cf->intf_cache[i])
cf                850 drivers/usb/core/config.c 				kref_put(&cf->intf_cache[i]->ref,
cf               1507 fs/ceph/caps.c 		struct ceph_cap_flush *cf;
cf               1517 fs/ceph/caps.c 		list_for_each_entry(cf, &ci->i_cap_flush_list, i_list) {
cf               1518 fs/ceph/caps.c 			if (cf->tid >= first_tid) {
cf               1526 fs/ceph/caps.c 		first_tid = cf->tid + 1;
cf               1528 fs/ceph/caps.c 		capsnap = container_of(cf, struct ceph_cap_snap, cap_flush);
cf               1533 fs/ceph/caps.c 		     inode, capsnap, cf->tid, ceph_cap_string(capsnap->dirty));
cf               1540 fs/ceph/caps.c 				ceph_vinop(inode), cf->tid, capsnap->follows);
cf               1669 fs/ceph/caps.c void ceph_free_cap_flush(struct ceph_cap_flush *cf)
cf               1671 fs/ceph/caps.c 	if (cf)
cf               1672 fs/ceph/caps.c 		kmem_cache_free(ceph_cap_flush_cachep, cf);
cf               1678 fs/ceph/caps.c 		struct ceph_cap_flush *cf =
cf               1681 fs/ceph/caps.c 		return cf->tid;
cf               1692 fs/ceph/caps.c 			       struct ceph_cap_flush *cf)
cf               1695 fs/ceph/caps.c 	bool wake = cf->wake;
cf               1698 fs/ceph/caps.c 		if (wake && cf->g_list.prev != &mdsc->cap_flush_list) {
cf               1699 fs/ceph/caps.c 			prev = list_prev_entry(cf, g_list);
cf               1703 fs/ceph/caps.c 		list_del(&cf->g_list);
cf               1705 fs/ceph/caps.c 		if (wake && cf->i_list.prev != &ci->i_cap_flush_list) {
cf               1706 fs/ceph/caps.c 			prev = list_prev_entry(cf, i_list);
cf               1710 fs/ceph/caps.c 		list_del(&cf->i_list);
cf               1729 fs/ceph/caps.c 	struct ceph_cap_flush *cf = NULL;
cf               1745 fs/ceph/caps.c 	swap(cf, ci->i_prealloc_cap_flush);
cf               1746 fs/ceph/caps.c 	cf->caps = flushing;
cf               1747 fs/ceph/caps.c 	cf->wake = wake;
cf               1752 fs/ceph/caps.c 	cf->tid = ++mdsc->last_cap_flush_tid;
cf               1753 fs/ceph/caps.c 	list_add_tail(&cf->g_list, &mdsc->cap_flush_list);
cf               1762 fs/ceph/caps.c 	list_add_tail(&cf->i_list, &ci->i_cap_flush_list);
cf               1764 fs/ceph/caps.c 	return cf->tid;
cf               2148 fs/ceph/caps.c 			struct ceph_cap_flush *cf =
cf               2151 fs/ceph/caps.c 			cf->wake = true;
cf               2152 fs/ceph/caps.c 			flush_tid = cf->tid;
cf               2175 fs/ceph/caps.c 		struct ceph_cap_flush * cf =
cf               2178 fs/ceph/caps.c 		if (cf->tid <= flush_tid)
cf               2315 fs/ceph/caps.c 	struct ceph_cap_flush *cf;
cf               2322 fs/ceph/caps.c 	list_for_each_entry_reverse(cf, &ci->i_cap_flush_list, i_list) {
cf               2323 fs/ceph/caps.c 		if (!cf->caps) {
cf               2324 fs/ceph/caps.c 			last_snap_flush = cf->tid;
cf               2329 fs/ceph/caps.c 	list_for_each_entry(cf, &ci->i_cap_flush_list, i_list) {
cf               2330 fs/ceph/caps.c 		if (cf->tid < first_tid)
cf               2340 fs/ceph/caps.c 		first_tid = cf->tid + 1;
cf               2342 fs/ceph/caps.c 		if (cf->caps) {
cf               2344 fs/ceph/caps.c 			     inode, cap, cf->tid, ceph_cap_string(cf->caps));
cf               2348 fs/ceph/caps.c 					 (cf->tid < last_snap_flush ?
cf               2353 fs/ceph/caps.c 					  cf->caps, cf->tid, oldest_flush_tid);
cf               2358 fs/ceph/caps.c 					ceph_vinop(inode), cf->tid,
cf               2359 fs/ceph/caps.c 					ceph_cap_string(cf->caps));
cf               2363 fs/ceph/caps.c 					container_of(cf, struct ceph_cap_snap,
cf               2366 fs/ceph/caps.c 			     inode, capsnap, cf->tid,
cf               2378 fs/ceph/caps.c 					ceph_vinop(inode), cf->tid,
cf               3380 fs/ceph/caps.c 	struct ceph_cap_flush *cf, *tmp_cf;
cf               3389 fs/ceph/caps.c 	list_for_each_entry_safe(cf, tmp_cf, &ci->i_cap_flush_list, i_list) {
cf               3390 fs/ceph/caps.c 		if (cf->tid == flush_tid)
cf               3391 fs/ceph/caps.c 			cleaned = cf->caps;
cf               3392 fs/ceph/caps.c 		if (cf->caps == 0) /* capsnap */
cf               3394 fs/ceph/caps.c 		if (cf->tid <= flush_tid) {
cf               3395 fs/ceph/caps.c 			if (__finish_cap_flush(NULL, ci, cf))
cf               3397 fs/ceph/caps.c 			list_add_tail(&cf->i_list, &to_remove);
cf               3399 fs/ceph/caps.c 			cleaned &= ~cf->caps;
cf               3418 fs/ceph/caps.c 	list_for_each_entry(cf, &to_remove, i_list) {
cf               3419 fs/ceph/caps.c 		if (__finish_cap_flush(mdsc, NULL, cf))
cf               3457 fs/ceph/caps.c 		cf = list_first_entry(&to_remove,
cf               3459 fs/ceph/caps.c 		list_del(&cf->i_list);
cf               3460 fs/ceph/caps.c 		ceph_free_cap_flush(cf);
cf               1396 fs/ceph/mds_client.c 		struct ceph_cap_flush *cf;
cf               1407 fs/ceph/mds_client.c 			cf = list_first_entry(&ci->i_cap_flush_list,
cf               1409 fs/ceph/mds_client.c 			list_move(&cf->i_list, &to_remove);
cf               1414 fs/ceph/mds_client.c 		list_for_each_entry(cf, &to_remove, i_list)
cf               1415 fs/ceph/mds_client.c 			list_del(&cf->g_list);
cf               1464 fs/ceph/mds_client.c 		struct ceph_cap_flush *cf;
cf               1465 fs/ceph/mds_client.c 		cf = list_first_entry(&to_remove,
cf               1467 fs/ceph/mds_client.c 		list_del(&cf->i_list);
cf               1468 fs/ceph/mds_client.c 		ceph_free_cap_flush(cf);
cf               1825 fs/ceph/mds_client.c 		struct ceph_cap_flush *cf =
cf               1828 fs/ceph/mds_client.c 		if (cf->tid <= want_flush_tid) {
cf               1830 fs/ceph/mds_client.c 			     "%llu <= %llu\n", cf->tid, want_flush_tid);
cf               4313 fs/ceph/mds_client.c 		struct ceph_cap_flush *cf =
cf               4316 fs/ceph/mds_client.c 		cf->wake = true;
cf                663 fs/ceph/super.h extern void ceph_free_cap_flush(struct ceph_cap_flush *cf);
cf                751 fs/ceph/super.h static inline void ceph_add_rw_context(struct ceph_file_info *cf,
cf                754 fs/ceph/super.h 	spin_lock(&cf->rw_contexts_lock);
cf                755 fs/ceph/super.h 	list_add(&ctx->list, &cf->rw_contexts);
cf                756 fs/ceph/super.h 	spin_unlock(&cf->rw_contexts_lock);
cf                759 fs/ceph/super.h static inline void ceph_del_rw_context(struct ceph_file_info *cf,
cf                762 fs/ceph/super.h 	spin_lock(&cf->rw_contexts_lock);
cf                764 fs/ceph/super.h 	spin_unlock(&cf->rw_contexts_lock);
cf                768 fs/ceph/super.h ceph_find_rw_context(struct ceph_file_info *cf)
cf                771 fs/ceph/super.h 	spin_lock(&cf->rw_contexts_lock);
cf                772 fs/ceph/super.h 	list_for_each_entry(ctx, &cf->rw_contexts, list) {
cf                778 fs/ceph/super.h 	spin_unlock(&cf->rw_contexts_lock);
cf                 46 fs/cifs/readdir.c 	struct cifsFileInfo *cf;
cf                 49 fs/cifs/readdir.c 		cf = file->private_data;
cf                 50 fs/cifs/readdir.c 		if (cf == NULL) {
cf                 54 fs/cifs/readdir.c 		if (cf->invalidHandle)
cf                 56 fs/cifs/readdir.c 		if (cf->srch_inf.endOfSearch)
cf                 58 fs/cifs/readdir.c 		if (cf->srch_inf.emptyDir)
cf               1363 fs/ext4/namei.c 			struct qstr cf = {.name = fname->cf_name.name,
cf               1365 fs/ext4/namei.c 			return !ext4_ci_compare(parent, &cf, &entry, true);
cf                189 fs/f2fs/dir.c  			struct qstr cf = {.name = cf_str->name,
cf                191 fs/f2fs/dir.c  			return !f2fs_ci_compare(parent, &cf, &entry, true);
cf                 32 fs/reiserfs/ibalance.c 					   int *d_key, struct buffer_head **cf)
cf                 50 fs/reiserfs/ibalance.c 		*cf = tb->CFL[h];
cf                 63 fs/reiserfs/ibalance.c 		*cf = tb->CFL[h];
cf                 77 fs/reiserfs/ibalance.c 		*cf = tb->CFR[h];
cf                 90 fs/reiserfs/ibalance.c 		*cf = tb->CFR[h];
cf                497 fs/reiserfs/ibalance.c 	struct buffer_head *cf;
cf                501 fs/reiserfs/ibalance.c 				       &d_key_position, &cf);
cf                510 fs/reiserfs/ibalance.c 		internal_insert_key(&dest_bi, B_NR_ITEMS(dest_bi.bi_bh), cf,
cf                515 fs/reiserfs/ibalance.c 				replace_key(tb, cf, d_key_position,
cf                519 fs/reiserfs/ibalance.c 			replace_key(tb, cf, d_key_position, src_bi.bi_bh,
cf                538 fs/reiserfs/ibalance.c 	struct buffer_head *cf;
cf                542 fs/reiserfs/ibalance.c 				       &dest_bi, &src_bi, &d_key_position, &cf);
cf                546 fs/reiserfs/ibalance.c 		internal_insert_key(&dest_bi, B_NR_ITEMS(dest_bi.bi_bh), cf,
cf                569 fs/reiserfs/ibalance.c 	struct buffer_head *cf;
cf                574 fs/reiserfs/ibalance.c 				       &d_key_position, &cf);
cf                583 fs/reiserfs/ibalance.c 		internal_insert_key(&dest_bi, 0, cf, d_key_position);
cf                591 fs/reiserfs/ibalance.c 				replace_key(tb, cf, d_key_position, tb->CFL[h],
cf                594 fs/reiserfs/ibalance.c 			replace_key(tb, cf, d_key_position, src_bi.bi_bh,
cf                613 fs/reiserfs/ibalance.c 	struct buffer_head *cf;
cf                617 fs/reiserfs/ibalance.c 				       &dest_bi, &src_bi, &d_key_position, &cf);
cf                621 fs/reiserfs/ibalance.c 		internal_insert_key(&dest_bi, 0, cf, d_key_position);
cf                 80 fs/unicode/utf8-core.c 			    const struct qstr *cf,
cf                 93 fs/unicode/utf8-core.c 		c2 = cf->name[i++];
cf                201 include/linux/can/dev.h void can_change_state(struct net_device *dev, struct can_frame *cf,
cf                217 include/linux/can/dev.h struct sk_buff *alloc_can_skb(struct net_device *dev, struct can_frame **cf);
cf                221 include/linux/can/dev.h 				  struct can_frame **cf);
cf                 19 include/linux/can/rx-offload.h 				     struct can_frame *cf,
cf                 37 include/linux/can/skb.h 	struct can_frame cf[0];
cf                 58 include/linux/platform_data/apds990x.h 	struct apds990x_chip_factors cf;
cf                 21 include/linux/unicode.h 			    const struct qstr *cf,
cf                111 include/uapi/linux/can/gw.h 	struct can_frame cf;
cf                116 include/uapi/linux/can/gw.h 	struct canfd_frame cf;
cf                 61 lib/decompress.c 	const struct compress_format *cf;
cf                 71 lib/decompress.c 	for (cf = compressed_formats; cf->name; cf++) {
cf                 72 lib/decompress.c 		if (!memcmp(inbuf, cf->magic, 2))
cf                 77 lib/decompress.c 		*name = cf->name;
cf                 78 lib/decompress.c 	return cf->decompressor;
cf                577 net/can/af_can.c 	struct can_frame *cf = (struct can_frame *)skb->data;
cf                578 net/can/af_can.c 	canid_t can_id = cf->can_id;
cf                271 net/can/bcm.c  	struct canfd_frame *cf = op->frames + op->cfsiz * op->currframe;
cf                291 net/can/bcm.c  	skb_put_data(skb, cf, op->cfsiz);
cf                505 net/can/bcm.c  	struct canfd_frame *cf = op->frames + op->cfsiz * index;
cf                522 net/can/bcm.c  		if ((get_u64(cf, i) & get_u64(rxdata, i)) !=
cf                523 net/can/bcm.c  		    (get_u64(cf, i) & get_u64(lcf, i))) {
cf                840 net/can/bcm.c  	struct canfd_frame *cf;
cf                872 net/can/bcm.c  			cf = op->frames + op->cfsiz * i;
cf                873 net/can/bcm.c  			err = memcpy_from_msg((u8 *)cf, msg, op->cfsiz);
cf                876 net/can/bcm.c  				if (cf->len > 64)
cf                879 net/can/bcm.c  				if (cf->len > 8)
cf                888 net/can/bcm.c  				cf->can_id = msg_head->can_id;
cf                918 net/can/bcm.c  			cf = op->frames + op->cfsiz * i;
cf                919 net/can/bcm.c  			err = memcpy_from_msg((u8 *)cf, msg, op->cfsiz);
cf                922 net/can/bcm.c  				if (cf->len > 64)
cf                925 net/can/bcm.c  				if (cf->len > 8)
cf                938 net/can/bcm.c  				cf->can_id = msg_head->can_id;
cf                 99 net/can/gw.c   	void (*modfunc[MAX_MODFUNCTIONS])(struct canfd_frame *cf,
cf                108 net/can/gw.c   		void (*xor)(struct canfd_frame *cf,
cf                110 net/can/gw.c   		void (*crc8)(struct canfd_frame *cf,
cf                154 net/can/gw.c   #define MODFUNC(func, op) static void func(struct canfd_frame *cf, \
cf                157 net/can/gw.c   MODFUNC(mod_and_id, cf->can_id &= mod->modframe.and.can_id)
cf                158 net/can/gw.c   MODFUNC(mod_and_len, cf->len &= mod->modframe.and.len)
cf                159 net/can/gw.c   MODFUNC(mod_and_flags, cf->flags &= mod->modframe.and.flags)
cf                160 net/can/gw.c   MODFUNC(mod_and_data, *(u64 *)cf->data &= *(u64 *)mod->modframe.and.data)
cf                161 net/can/gw.c   MODFUNC(mod_or_id, cf->can_id |= mod->modframe.or.can_id)
cf                162 net/can/gw.c   MODFUNC(mod_or_len, cf->len |= mod->modframe.or.len)
cf                163 net/can/gw.c   MODFUNC(mod_or_flags, cf->flags |= mod->modframe.or.flags)
cf                164 net/can/gw.c   MODFUNC(mod_or_data, *(u64 *)cf->data |= *(u64 *)mod->modframe.or.data)
cf                165 net/can/gw.c   MODFUNC(mod_xor_id, cf->can_id ^= mod->modframe.xor.can_id)
cf                166 net/can/gw.c   MODFUNC(mod_xor_len, cf->len ^= mod->modframe.xor.len)
cf                167 net/can/gw.c   MODFUNC(mod_xor_flags, cf->flags ^= mod->modframe.xor.flags)
cf                168 net/can/gw.c   MODFUNC(mod_xor_data, *(u64 *)cf->data ^= *(u64 *)mod->modframe.xor.data)
cf                169 net/can/gw.c   MODFUNC(mod_set_id, cf->can_id = mod->modframe.set.can_id)
cf                170 net/can/gw.c   MODFUNC(mod_set_len, cf->len = mod->modframe.set.len)
cf                171 net/can/gw.c   MODFUNC(mod_set_flags, cf->flags = mod->modframe.set.flags)
cf                172 net/can/gw.c   MODFUNC(mod_set_data, *(u64 *)cf->data = *(u64 *)mod->modframe.set.data)
cf                174 net/can/gw.c   static void mod_and_fddata(struct canfd_frame *cf, struct cf_mod *mod)
cf                179 net/can/gw.c   		*(u64 *)(cf->data + i) &= *(u64 *)(mod->modframe.and.data + i);
cf                182 net/can/gw.c   static void mod_or_fddata(struct canfd_frame *cf, struct cf_mod *mod)
cf                187 net/can/gw.c   		*(u64 *)(cf->data + i) |= *(u64 *)(mod->modframe.or.data + i);
cf                190 net/can/gw.c   static void mod_xor_fddata(struct canfd_frame *cf, struct cf_mod *mod)
cf                195 net/can/gw.c   		*(u64 *)(cf->data + i) ^= *(u64 *)(mod->modframe.xor.data + i);
cf                198 net/can/gw.c   static void mod_set_fddata(struct canfd_frame *cf, struct cf_mod *mod)
cf                200 net/can/gw.c   	memcpy(cf->data, mod->modframe.set.data, CANFD_MAX_DLEN);
cf                259 net/can/gw.c   static void cgw_csum_xor_rel(struct canfd_frame *cf, struct cgw_csum_xor *xor)
cf                261 net/can/gw.c   	int from = calc_idx(xor->from_idx, cf->len);
cf                262 net/can/gw.c   	int to = calc_idx(xor->to_idx, cf->len);
cf                263 net/can/gw.c   	int res = calc_idx(xor->result_idx, cf->len);
cf                272 net/can/gw.c   			val ^= cf->data[i];
cf                275 net/can/gw.c   			val ^= cf->data[i];
cf                278 net/can/gw.c   	cf->data[res] = val;
cf                281 net/can/gw.c   static void cgw_csum_xor_pos(struct canfd_frame *cf, struct cgw_csum_xor *xor)
cf                287 net/can/gw.c   		val ^= cf->data[i];
cf                289 net/can/gw.c   	cf->data[xor->result_idx] = val;
cf                292 net/can/gw.c   static void cgw_csum_xor_neg(struct canfd_frame *cf, struct cgw_csum_xor *xor)
cf                298 net/can/gw.c   		val ^= cf->data[i];
cf                300 net/can/gw.c   	cf->data[xor->result_idx] = val;
cf                303 net/can/gw.c   static void cgw_csum_crc8_rel(struct canfd_frame *cf,
cf                306 net/can/gw.c   	int from = calc_idx(crc8->from_idx, cf->len);
cf                307 net/can/gw.c   	int to = calc_idx(crc8->to_idx, cf->len);
cf                308 net/can/gw.c   	int res = calc_idx(crc8->result_idx, cf->len);
cf                317 net/can/gw.c   			crc = crc8->crctab[crc ^ cf->data[i]];
cf                320 net/can/gw.c   			crc = crc8->crctab[crc ^ cf->data[i]];
cf                329 net/can/gw.c   		crc = crc8->crctab[crc ^ crc8->profile_data[cf->data[1] & 0xF]];
cf                333 net/can/gw.c   		crc = crc8->crctab[crc ^ (cf->can_id & 0xFF) ^
cf                334 net/can/gw.c   				   (cf->can_id >> 8 & 0xFF)];
cf                338 net/can/gw.c   	cf->data[crc8->result_idx] = crc ^ crc8->final_xor_val;
cf                341 net/can/gw.c   static void cgw_csum_crc8_pos(struct canfd_frame *cf,
cf                348 net/can/gw.c   		crc = crc8->crctab[crc ^ cf->data[i]];
cf                356 net/can/gw.c   		crc = crc8->crctab[crc ^ crc8->profile_data[cf->data[1] & 0xF]];
cf                360 net/can/gw.c   		crc = crc8->crctab[crc ^ (cf->can_id & 0xFF) ^
cf                361 net/can/gw.c   				   (cf->can_id >> 8 & 0xFF)];
cf                365 net/can/gw.c   	cf->data[crc8->result_idx] = crc ^ crc8->final_xor_val;
cf                368 net/can/gw.c   static void cgw_csum_crc8_neg(struct canfd_frame *cf,
cf                375 net/can/gw.c   		crc = crc8->crctab[crc ^ cf->data[i]];
cf                383 net/can/gw.c   		crc = crc8->crctab[crc ^ crc8->profile_data[cf->data[1] & 0xF]];
cf                387 net/can/gw.c   		crc = crc8->crctab[crc ^ (cf->can_id & 0xFF) ^
cf                388 net/can/gw.c   				   (cf->can_id >> 8 & 0xFF)];
cf                392 net/can/gw.c   	cf->data[crc8->result_idx] = crc ^ crc8->final_xor_val;
cf                399 net/can/gw.c   	struct canfd_frame *cf;
cf                468 net/can/gw.c   	cf = (struct canfd_frame *)nskb->data;
cf                472 net/can/gw.c   		(*gwj->mod.modfunc[modidx++])(cf, &gwj->mod);
cf                480 net/can/gw.c   		if (cf->len > max_len) {
cf                489 net/can/gw.c   			(*gwj->mod.csumfunc.crc8)(cf, &gwj->mod.csum.crc8);
cf                492 net/can/gw.c   			(*gwj->mod.csumfunc.xor)(cf, &gwj->mod.csum.xor);
cf                589 net/can/gw.c   			memcpy(&mb.cf, &gwj->mod.modframe.and, sizeof(mb.cf));
cf                596 net/can/gw.c   			memcpy(&mb.cf, &gwj->mod.modframe.or, sizeof(mb.cf));
cf                603 net/can/gw.c   			memcpy(&mb.cf, &gwj->mod.modframe.xor, sizeof(mb.cf));
cf                610 net/can/gw.c   			memcpy(&mb.cf, &gwj->mod.modframe.set, sizeof(mb.cf));
cf                619 net/can/gw.c   			memcpy(&mb.cf, &gwj->mod.modframe.and, sizeof(mb.cf));
cf                626 net/can/gw.c   			memcpy(&mb.cf, &gwj->mod.modframe.or, sizeof(mb.cf));
cf                633 net/can/gw.c   			memcpy(&mb.cf, &gwj->mod.modframe.xor, sizeof(mb.cf));
cf                640 net/can/gw.c   			memcpy(&mb.cf, &gwj->mod.modframe.set, sizeof(mb.cf));
cf                762 net/can/gw.c   			canfdframecpy(&mod->modframe.and, &mb.cf);
cf                781 net/can/gw.c   			canfdframecpy(&mod->modframe.or, &mb.cf);
cf                800 net/can/gw.c   			canfdframecpy(&mod->modframe.xor, &mb.cf);
cf                819 net/can/gw.c   			canfdframecpy(&mod->modframe.set, &mb.cf);
cf                840 net/can/gw.c   			canframecpy(&mod->modframe.and, &mb.cf);
cf                856 net/can/gw.c   			canframecpy(&mod->modframe.or, &mb.cf);
cf                872 net/can/gw.c   			canframecpy(&mod->modframe.xor, &mb.cf);
cf                888 net/can/gw.c   			canframecpy(&mod->modframe.set, &mb.cf);
cf                 43 net/can/j1939/main.c 	struct can_frame *cf;
cf                 61 net/can/j1939/main.c 	cf = (void *)skb->data;
cf                 65 net/can/j1939/main.c 	skb_trim(skb, min_t(uint8_t, cf->can_dlc, 8));
cf                 73 net/can/j1939/main.c 	skcb->priority = (cf->can_id >> 26) & 0x7;
cf                 74 net/can/j1939/main.c 	skcb->addr.sa = cf->can_id;
cf                 75 net/can/j1939/main.c 	skcb->addr.pgn = (cf->can_id >> 8) & J1939_PGN_MAX;
cf                308 net/can/j1939/main.c 	struct can_frame *cf;
cf                325 net/can/j1939/main.c 	cf = skb_push(skb, J1939_CAN_HDR);
cf                337 net/can/j1939/main.c 	cf->can_id = canid;
cf                338 net/can/j1939/main.c 	cf->can_dlc = dlc;
cf                 47 net/sched/em_canid.c 	struct can_frame *cf = (struct can_frame *)skb->data;
cf                 49 net/sched/em_canid.c 	return cf->can_id;
cf                442 sound/soc/codecs/hdmi-codec.c 	struct hdmi_codec_daifmt *cf = dai->playback_dma_data;
cf                487 sound/soc/codecs/hdmi-codec.c 				       cf, &hp);
cf                493 sound/soc/codecs/hdmi-codec.c 	struct hdmi_codec_daifmt *cf = dai->playback_dma_data;
cf                496 sound/soc/codecs/hdmi-codec.c 	memset(cf, 0, sizeof(*cf));
cf                500 sound/soc/codecs/hdmi-codec.c 		cf->bit_clk_master = 1;
cf                501 sound/soc/codecs/hdmi-codec.c 		cf->frame_clk_master = 1;
cf                504 sound/soc/codecs/hdmi-codec.c 		cf->frame_clk_master = 1;
cf                507 sound/soc/codecs/hdmi-codec.c 		cf->bit_clk_master = 1;
cf                519 sound/soc/codecs/hdmi-codec.c 		cf->frame_clk_inv = 1;
cf                522 sound/soc/codecs/hdmi-codec.c 		cf->bit_clk_inv = 1;
cf                525 sound/soc/codecs/hdmi-codec.c 		cf->frame_clk_inv = 1;
cf                526 sound/soc/codecs/hdmi-codec.c 		cf->bit_clk_inv = 1;
cf                532 sound/soc/codecs/hdmi-codec.c 		cf->fmt = HDMI_I2S;
cf                535 sound/soc/codecs/hdmi-codec.c 		cf->fmt = HDMI_DSP_A;
cf                538 sound/soc/codecs/hdmi-codec.c 		cf->fmt = HDMI_DSP_B;
cf                541 sound/soc/codecs/hdmi-codec.c 		cf->fmt = HDMI_RIGHT_J;
cf                544 sound/soc/codecs/hdmi-codec.c 		cf->fmt = HDMI_LEFT_J;
cf                547 sound/soc/codecs/hdmi-codec.c 		cf->fmt = HDMI_AC97;
cf                714 sound/soc/codecs/hdmi-codec.c 	struct hdmi_codec_daifmt *cf = dai->playback_dma_data;
cf                721 sound/soc/codecs/hdmi-codec.c 	cf = dai->playback_dma_data;
cf                722 sound/soc/codecs/hdmi-codec.c 	cf->fmt = HDMI_SPDIF;