/linux-6.3-rc2/drivers/pcmcia/ |
A D | electra_cf.c | 193 cf = kzalloc(sizeof(*cf), GFP_KERNEL); in electra_cf_probe() 194 if (!cf) in electra_cf_probe() 203 cf->mem_base = ioremap(cf->mem_phys, cf->mem_size); in electra_cf_probe() 217 cf->iomem.start = (unsigned long)cf->mem_base; in electra_cf_probe() 230 cf->socket.pci_irq = cf->irq; in electra_cf_probe() 254 cf->socket.io_offset = cf->io_base; in electra_cf_probe() 284 cf->mem_phys, io.start, cf->irq); in electra_cf_probe() 291 release_region(cf->io_base, cf->io_size); in electra_cf_probe() 296 free_irq(cf->irq, cf); in electra_cf_probe() 319 free_irq(cf->irq, cf); in electra_cf_remove() [all …]
|
A D | omap_cf.c | 80 struct omap_cf_socket *cf = from_timer(cf, t, timer); in omap_cf_timer() local 90 if (cf->active) in omap_cf_timer() 219 cf = kzalloc(sizeof *cf, GFP_KERNEL); in omap_cf_probe() 220 if (!cf) in omap_cf_probe() 232 cf->irq = irq; in omap_cf_probe() 274 cf->socket.io[0].res = &cf->iomem; in omap_cf_probe() 280 cf->active = 1; in omap_cf_probe() 289 kfree(cf); in omap_cf_probe() 297 cf->active = 0; in omap_cf_remove() 301 free_irq(cf->irq, cf); in omap_cf_remove() [all …]
|
/linux-6.3-rc2/drivers/clk/sunxi-ng/ |
A D | ccu_frac.c | 14 struct ccu_frac_internal *cf) in ccu_frac_helper_is_enabled() argument 24 struct ccu_frac_internal *cf) in ccu_frac_helper_enable() argument 40 struct ccu_frac_internal *cf) in ccu_frac_helper_disable() argument 62 return (cf->rates[0] == rate) || (cf->rates[1] == rate); in ccu_frac_helper_has_rate() 67 struct ccu_frac_internal *cf) in ccu_frac_helper_read_rate() argument 77 clk_hw_get_name(&common->hw), cf->rates[0], cf->rates[1]); in ccu_frac_helper_read_rate() 84 return (reg & cf->select) ? cf->rates[1] : cf->rates[0]; in ccu_frac_helper_read_rate() 98 if (cf->rates[0] == rate) in ccu_frac_helper_set_rate() 100 else if (cf->rates[1] == rate) in ccu_frac_helper_set_rate() 101 sel = cf->select; in ccu_frac_helper_set_rate() [all …]
|
A D | ccu_frac.h | 28 struct ccu_frac_internal *cf); 30 struct ccu_frac_internal *cf); 32 struct ccu_frac_internal *cf); 35 struct ccu_frac_internal *cf, 39 struct ccu_frac_internal *cf); 42 struct ccu_frac_internal *cf,
|
/linux-6.3-rc2/net/can/ |
A D | gw.c | 241 mod_store_ccdlc(cf); in mod_and_ccdlc() 247 mod_or_len(cf, mod); in mod_or_ccdlc() 248 mod_store_ccdlc(cf); in mod_or_ccdlc() 657 memcpy(&mb.cf, &gwj->mod.modframe.and, sizeof(mb.cf)); in cgw_put_job() 664 memcpy(&mb.cf, &gwj->mod.modframe.or, sizeof(mb.cf)); in cgw_put_job() 671 memcpy(&mb.cf, &gwj->mod.modframe.xor, sizeof(mb.cf)); in cgw_put_job() 678 memcpy(&mb.cf, &gwj->mod.modframe.set, sizeof(mb.cf)); in cgw_put_job() 687 memcpy(&mb.cf, &gwj->mod.modframe.and, sizeof(mb.cf)); in cgw_put_job() 694 memcpy(&mb.cf, &gwj->mod.modframe.or, sizeof(mb.cf)); in cgw_put_job() 701 memcpy(&mb.cf, &gwj->mod.modframe.xor, sizeof(mb.cf)); in cgw_put_job() [all …]
|
A D | isotp.c | 339 cf->len != padlen(cf->len)) in check_pad() 628 struct canfd_frame *cf; in isotp_rcv() local 718 cf->can_id = so->txid; in isotp_fill_dataframe() 719 cf->len = num + pcilen; in isotp_fill_dataframe() 724 cf->len = padlen(cf->len); in isotp_fill_dataframe() 725 memset(cf->data, so->opt.txpad_content, cf->len); in isotp_fill_dataframe() 728 cf->len = padlen(cf->len); in isotp_fill_dataframe() 730 cf->len); in isotp_fill_dataframe() 746 struct canfd_frame *cf; in isotp_send_cframe() local 804 cf->can_id = so->txid; in isotp_create_fframe() [all …]
|
/linux-6.3-rc2/drivers/net/can/slcan/ |
A D | slcan-core.c | 174 struct can_frame *cf; in slcan_bump_frame() local 214 cf->can_id |= tmpid; in slcan_bump_frame() 217 if (cf->len >= '0' && cf->len < '9') in slcan_bump_frame() 218 cf->len -= '0'; in slcan_bump_frame() 234 cf->data[i] |= tmp; in slcan_bump_frame() 262 struct can_frame *cf; in slcan_bump_state() local 307 cf->data[6] = txerr; in slcan_bump_state() 308 cf->data[7] = rxerr; in slcan_bump_state() 326 struct can_frame *cf; in slcan_bump_err() local 487 canid_t id = cf->can_id; in slcan_encaps() [all …]
|
/linux-6.3-rc2/drivers/net/can/ |
A D | xilinx_can.c | 648 if (cf->len > 0) in xcan_write_frame() 650 if (cf->len > 4) in xcan_write_frame() 778 struct can_frame *cf; in xcan_rx() local 819 if (cf->len > 0) in xcan_rx() 821 if (cf->len > 4) in xcan_rx() 848 struct canfd_frame *cf; in xcanfd_rx() local 968 if (cf) { in xcan_set_error_state() 970 cf->data[6] = txerr; in xcan_set_error_state() 971 cf->data[7] = rxerr; in xcan_set_error_state() 1000 struct can_frame *cf; in xcan_update_error_state_after_rxtx() local [all …]
|
A D | janz-ican3.c | 921 memcpy(cf->data, &desc->data[2], cf->len); in ican3_to_can_frame() 938 memcpy(cf->data, &desc->data[6], cf->len); in ican3_to_can_frame() 974 memcpy(&desc->data[6], cf->data, cf->len); in can_frame_to_ican3() 995 struct can_frame *cf; in ican3_handle_msglost() local 1039 struct can_frame *cf; in ican3_handle_cevtind() local 1151 cf->data[6] = txerr; in ican3_handle_cevtind() 1152 cf->data[7] = rxerr; in ican3_handle_cevtind() 1170 cf->data[6] = txerr; in ican3_handle_cevtind() 1171 cf->data[7] = rxerr; in ican3_handle_cevtind() 1301 dlc = cf->len; in ican3_get_echo_skb() [all …]
|
A D | at91_can.c | 540 struct can_frame *cf; in at91_rx_overflow_err() local 550 cf->can_id |= CAN_ERR_CRTL; in at91_rx_overflow_err() 566 struct can_frame *cf) in at91_read_mb() argument 581 cf->can_id |= CAN_RTR_FLAG; in at91_read_mb() 605 struct can_frame *cf; in at91_read_msg() local 614 at91_read_mb(dev, mb, cf); in at91_read_msg() 618 stats->rx_bytes += cf->len; in at91_read_msg() 741 cf->can_id |= CAN_ERR_ACK; in at91_poll_err_frame() 766 struct can_frame *cf; in at91_poll_err() local 936 cf->can_id |= CAN_ERR_PROT; in at91_irq_err_state() [all …]
|
/linux-6.3-rc2/drivers/net/can/peak_canfd/ |
A D | peak_canfd.c | 255 struct canfd_frame *cf; in pucan_handle_can_rx() local 296 cf->flags |= CANFD_BRS; in pucan_handle_can_rx() 299 cf->flags |= CANFD_ESI; in pucan_handle_can_rx() 308 cf->len = cf_len; in pucan_handle_can_rx() 311 cf->can_id |= CAN_EFF_FLAG; in pucan_handle_can_rx() 314 cf->can_id |= CAN_RTR_FLAG; in pucan_handle_can_rx() 316 memcpy(cf->data, msg->d, cf->len); in pucan_handle_can_rx() 343 struct can_frame *cf; in pucan_handle_status() local 422 struct can_frame *cf; in pucan_handle_cache_critical() local 693 len = cf->len; in peak_canfd_start_xmit() [all …]
|
/linux-6.3-rc2/include/linux/can/ |
A D | length.h | 135 static inline u8 can_get_cc_dlc(const struct can_frame *cf, const u32 ctrlmode) in can_get_cc_dlc() argument 139 (cf->len == CAN_MAX_DLEN) && in can_get_cc_dlc() 140 (cf->len8_dlc > CAN_MAX_DLEN && cf->len8_dlc <= CAN_MAX_RAW_DLC)) in can_get_cc_dlc() 141 return cf->len8_dlc; in can_get_cc_dlc() 144 return cf->len; in can_get_cc_dlc() 148 static inline void can_frame_set_cc_len(struct can_frame *cf, const u8 dlc, in can_frame_set_cc_len() argument 153 cf->len8_dlc = dlc; in can_frame_set_cc_len() 156 cf->len = can_cc_dlc2len(dlc); in can_frame_set_cc_len()
|
/linux-6.3-rc2/tools/testing/selftests/rcutorture/bin/ |
A D | configNR_CPUS.sh | 15 cf=$1 16 if test ! -r $cf 18 echo Unreadable config fragment $cf 1>&2 21 if grep -q '^CONFIG_SMP=n$' $cf 26 if grep -q '^CONFIG_NR_CPUS=' $cf 28 grep '^CONFIG_NR_CPUS=' $cf |
|
/linux-6.3-rc2/drivers/net/can/ctucanfd/ |
A D | ctucanfd_base.c | 541 if (cf->flags & CANFD_BRS) in ctucan_insert_frame() 662 cf->flags |= CANFD_BRS; in ctucan_read_rx_frame() 664 cf->flags |= CANFD_ESI; in ctucan_read_rx_frame() 680 cf->len = len; in ctucan_read_rx_frame() 713 struct canfd_frame *cf; in ctucan_rx() local 740 stats->rx_bytes += cf->len; in ctucan_rx() 804 struct can_frame *cf; in ctucan_err_interrupt() local 854 cf->data[6] = bec.txerr; in ctucan_err_interrupt() 872 cf->data[6] = bec.txerr; in ctucan_err_interrupt() 873 cf->data[7] = bec.rxerr; in ctucan_err_interrupt() [all …]
|
/linux-6.3-rc2/drivers/net/can/ifi_canfd/ |
A D | ifi_canfd.c | 253 struct canfd_frame *cf; in ifi_canfd_read_fifo() local 295 cf->can_id = id; in ifi_canfd_read_fifo() 298 cf->flags |= CANFD_ESI; in ifi_canfd_read_fifo() 307 cf->flags |= CANFD_BRS; in ifi_canfd_read_fifo() 310 *(u32 *)(cf->data + i) = in ifi_canfd_read_fifo() 379 struct can_frame *cf; in ifi_canfd_handle_lec_err() local 455 struct can_frame *cf; in ifi_canfd_handle_state_change() local 500 cf->data[6] = bec.txerr; in ifi_canfd_handle_state_change() 501 cf->data[7] = bec.rxerr; in ifi_canfd_handle_state_change() 509 cf->data[6] = bec.txerr; in ifi_canfd_handle_state_change() [all …]
|
/linux-6.3-rc2/lib/ |
A D | decompress.c | 66 const struct compress_format *cf; in decompress_method() local 76 for (cf = compressed_formats; cf->name; cf++) { in decompress_method() 77 if (!memcmp(inbuf, cf->magic, 2)) in decompress_method() 82 *name = cf->name; in decompress_method() 83 return cf->decompressor; in decompress_method()
|
/linux-6.3-rc2/drivers/net/can/sja1000/ |
A D | sja1000.c | 300 id = cf->can_id; in sja1000_start_xmit() 320 for (i = 0; i < cf->len; i++) in sja1000_start_xmit() 342 struct can_frame *cf; in sja1000_rx() local 378 stats->rx_bytes += cf->len; in sja1000_rx() 382 cf->can_id = id; in sja1000_rx() 394 struct can_frame *cf; in sja1000_err() local 411 cf->can_id |= CAN_ERR_CRTL; in sja1000_err() 430 cf->can_id |= CAN_ERR_CNT; in sja1000_err() 431 cf->data[6] = txerr; in sja1000_err() 432 cf->data[7] = rxerr; in sja1000_err() [all …]
|
/linux-6.3-rc2/drivers/media/test-drivers/vicodec/ |
A D | codec-fwht.c | 712 quantize_intra(cf->coeffs, cf->de_coeffs, in encode_plane() 713 cf->i_frame_qp); in encode_plane() 718 quantize_inter(cf->coeffs, cf->de_coeffs, in encode_plane() 719 cf->p_frame_qp); in encode_plane() 722 ifwht(cf->de_coeffs, cf->de_fwht, blocktype); in encode_plane() 779 struct fwht_cframe *cf, in fwht_encode_frame() argument 785 __be16 *rlco = cf->rlc_data; in fwht_encode_frame() 804 cf, chroma_h, chroma_w, in fwht_encode_frame() 812 cf, chroma_h, chroma_w, in fwht_encode_frame() 831 cf->size = (rlco - cf->rlc_data) * sizeof(*rlco); in fwht_encode_frame() [all …]
|
/linux-6.3-rc2/drivers/net/can/rcar/ |
A D | rcar_can.c | 225 struct can_frame *cf; in rcar_can_error() local 237 cf->can_id |= CAN_ERR_CRTL; in rcar_can_error() 281 cf->can_id |= CAN_ERR_ACK; in rcar_can_error() 338 cf->can_id |= CAN_ERR_CNT; in rcar_can_error() 339 cf->data[6] = txerr; in rcar_can_error() 340 cf->data[7] = rxerr; in rcar_can_error() 605 writeb(cf->data[i], in rcar_can_start_xmit() 641 struct can_frame *cf; in rcar_can_rx_pkt() local 661 cf->can_id |= CAN_RTR_FLAG; in rcar_can_rx_pkt() 664 cf->data[dlc] = in rcar_can_rx_pkt() [all …]
|
/linux-6.3-rc2/drivers/dma/ |
A D | fsl_raid.c | 244 cf[index].efrl32 = efrl; in fill_cfd_frame() 261 desc->cf_addr = cf; in fsl_re_init_desc() 274 void *cf; in fsl_re_chan_alloc_desc() local 298 if (!cf) { in fsl_re_chan_alloc_desc() 322 struct fsl_re_cmpnd_frame *cf; in fsl_re_prep_dma_genq() local 366 cf = desc->cf_addr; in fsl_re_prep_dma_genq() 409 struct fsl_re_cmpnd_frame *cf; in fsl_re_prep_dma_pq() local 487 cf = desc->cf_addr; in fsl_re_prep_dma_pq() 557 cf = desc->cf_addr; in fsl_re_prep_dma_memcpy() 575 void *cf; in fsl_re_alloc_chan_resources() local [all …]
|
/linux-6.3-rc2/drivers/net/can/usb/ |
A D | usb_8dev.c | 336 struct can_frame *cf; in usb_8dev_rx_err_msg() local 361 cf->can_id |= CAN_ERR_PROT; in usb_8dev_rx_err_msg() 373 cf->can_id |= CAN_ERR_CRTL; in usb_8dev_rx_err_msg() 387 cf->can_id |= CAN_ERR_ACK; in usb_8dev_rx_err_msg() 443 cf->can_id |= CAN_ERR_CNT; in usb_8dev_rx_err_msg() 444 cf->data[6] = txerr; in usb_8dev_rx_err_msg() 445 cf->data[7] = rxerr; in usb_8dev_rx_err_msg() 458 struct can_frame *cf; in usb_8dev_rx_can_msg() local 474 cf->can_id |= CAN_EFF_FLAG; in usb_8dev_rx_can_msg() 479 memcpy(cf->data, msg->data, cf->len); in usb_8dev_rx_can_msg() [all …]
|
/linux-6.3-rc2/drivers/net/can/dev/ |
A D | length.c | 71 const struct canfd_frame *cf = (const struct canfd_frame *)skb->data; in can_skb_get_frame_len() local 75 len = canfd_sanitize_len(cf->len); in can_skb_get_frame_len() 76 else if (cf->can_id & CAN_RTR_FLAG) in can_skb_get_frame_len() 79 len = cf->len; in can_skb_get_frame_len() 82 if (cf->can_id & CAN_EFF_FLAG) in can_skb_get_frame_len() 87 if (cf->can_id & CAN_EFF_FLAG) in can_skb_get_frame_len()
|
/linux-6.3-rc2/drivers/net/can/cc770/ |
A D | cc770.c | 394 dlc = cf->len; in cc770_tx() 395 id = cf->can_id; in cc770_tx() 453 struct can_frame *cf; in cc770_rx() local 471 cf->can_id = CAN_RTR_FLAG; in cc770_rx() 474 cf->len = 0; in cc770_rx() 489 cf->can_id = id; in cc770_rx() 494 stats->rx_bytes += cf->len; in cc770_rx() 504 struct can_frame *cf; in cc770_err() local 516 cf->can_id |= CAN_ERR_CNT; in cc770_err() 529 cf->can_id |= CAN_ERR_CRTL; in cc770_err() [all …]
|
/linux-6.3-rc2/drivers/net/can/usb/kvaser_usb/ |
A D | kvaser_usb_hydra.c | 923 struct can_frame *cf; in kvaser_usb_hydra_update_state() local 1070 struct can_frame *cf; in kvaser_usb_hydra_error_frame() local 1128 cf->data[6] = bec.txerr; in kvaser_usb_hydra_error_frame() 1129 cf->data[7] = bec.rxerr; in kvaser_usb_hydra_error_frame() 1143 struct can_frame *cf; in kvaser_usb_hydra_one_shot_fail() local 1223 struct can_frame *cf; in kvaser_usb_hydra_rx_msg_std() local 1271 memcpy(cf->data, cmd->rx_can.data, cf->len); in kvaser_usb_hydra_rx_msg_std() 1285 struct canfd_frame *cf; in kvaser_usb_hydra_rx_msg_ext() local 1341 cf->flags |= CANFD_BRS; in kvaser_usb_hydra_rx_msg_ext() 1351 memcpy(cf->data, cmd->rx_can.kcan_payload, cf->len); in kvaser_usb_hydra_rx_msg_ext() [all …]
|
/linux-6.3-rc2/drivers/net/can/usb/peak_usb/ |
A D | pcan_usb.c | 476 struct can_frame *cf; in pcan_usb_decode_error() local 492 if (cf) { in pcan_usb_decode_error() 493 cf->can_id |= CAN_ERR_CRTL; in pcan_usb_decode_error() 525 } else if (cf && (cf->can_id & CAN_ERR_CRTL)) { in pcan_usb_decode_error() 529 cf->can_id = CAN_ERR_CNT; in pcan_usb_decode_error() 654 struct can_frame *cf; in pcan_usb_decode_data() local 688 memset(cf->data, 0x0, sizeof(cf->data)); in pcan_usb_decode_data() 690 cf->can_id |= CAN_RTR_FLAG; in pcan_usb_decode_data() 695 memcpy(cf->data, mc->ptr, cf->len); in pcan_usb_decode_data() 825 memcpy(pc, cf->data, cf->len); in pcan_usb_encode_msg() [all …]
|