Home
last modified time | relevance | path

Searched refs:cf (Results 1 – 25 of 174) sorted by relevance

1234567

/linux-6.12.1/drivers/pcmcia/
Delectra_cf.c55 static int electra_cf_present(struct electra_cf_socket *cf) in electra_cf_present() argument
59 gpio = in_le32(cf->gpio_base+0x40); in electra_cf_present()
60 return !(gpio & (1 << cf->gpio_detect)); in electra_cf_present()
71 struct electra_cf_socket *cf = from_timer(cf, t, timer); in electra_cf_timer() local
72 int present = electra_cf_present(cf); in electra_cf_timer()
74 if (present != cf->present) { in electra_cf_timer()
75 cf->present = present; in electra_cf_timer()
76 pcmcia_parse_events(&cf->socket, SS_DETECT); in electra_cf_timer()
79 if (cf->active) in electra_cf_timer()
80 mod_timer(&cf->timer, jiffies + POLL_INTERVAL); in electra_cf_timer()
[all …]
Domap_cf.c80 struct omap_cf_socket *cf = from_timer(cf, t, timer); in omap_cf_timer() local
83 if (present != cf->present) { in omap_cf_timer()
84 cf->present = present; in omap_cf_timer()
87 pcmcia_parse_events(&cf->socket, SS_DETECT); in omap_cf_timer()
90 if (cf->active) in omap_cf_timer()
91 mod_timer(&cf->timer, jiffies + POLL_INTERVAL); in omap_cf_timer()
100 struct omap_cf_socket *cf = (struct omap_cf_socket *)_cf; in omap_cf_irq() local
102 omap_cf_timer(&cf->timer); in omap_cf_irq()
113 struct omap_cf_socket *cf; in omap_cf_get_status() local
116 cf = container_of(s, struct omap_cf_socket, socket); in omap_cf_get_status()
[all …]
/linux-6.12.1/drivers/clk/sunxi-ng/
Dccu_frac.c14 struct ccu_frac_internal *cf) in ccu_frac_helper_is_enabled() argument
19 return !(readl(common->base + common->reg) & cf->enable); in ccu_frac_helper_is_enabled()
24 struct ccu_frac_internal *cf) in ccu_frac_helper_enable() argument
34 writel(reg & ~cf->enable, common->base + common->reg); in ccu_frac_helper_enable()
40 struct ccu_frac_internal *cf) in ccu_frac_helper_disable() argument
50 writel(reg | cf->enable, common->base + common->reg); in ccu_frac_helper_disable()
56 struct ccu_frac_internal *cf, in ccu_frac_helper_has_rate() 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()
[all …]
Dccu_frac.h28 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.12.1/net/can/
Dgw.c98 void (*modfunc[MAX_MODFUNCTIONS])(struct canfd_frame *cf,
107 void (*xor)(struct canfd_frame *cf,
109 void (*crc8)(struct canfd_frame *cf,
153 #define MODFUNC(func, op) static void func(struct canfd_frame *cf, \
156 MODFUNC(mod_and_id, cf->can_id &= mod->modframe.and.can_id)
157 MODFUNC(mod_and_len, cf->len &= mod->modframe.and.len)
158 MODFUNC(mod_and_flags, cf->flags &= mod->modframe.and.flags)
159 MODFUNC(mod_and_data, *(u64 *)cf->data &= *(u64 *)mod->modframe.and.data)
160 MODFUNC(mod_or_id, cf->can_id |= mod->modframe.or.can_id)
161 MODFUNC(mod_or_len, cf->len |= mod->modframe.or.len)
[all …]
Disotp.c312 static int check_optimized(struct canfd_frame *cf, int start_index) in check_optimized() argument
319 if (cf->len <= CAN_MAX_DLEN) in check_optimized()
320 return (cf->len != start_index); in check_optimized()
328 return (cf->len != padlen(start_index)); in check_optimized()
332 static int check_pad(struct isotp_sock *so, struct canfd_frame *cf, in check_pad() argument
340 return check_optimized(cf, start_index); in check_pad()
348 cf->len != padlen(cf->len)) in check_pad()
353 for (i = start_index; i < cf->len; i++) in check_pad()
354 if (cf->data[i] != content) in check_pad()
362 static int isotp_rcv_fc(struct isotp_sock *so, struct canfd_frame *cf, int ae) in isotp_rcv_fc() argument
[all …]
/linux-6.12.1/drivers/net/can/slcan/
Dslcan-core.c174 struct can_frame *cf; in slcan_bump_frame() local
179 skb = alloc_can_skb(sl->dev, &cf); in slcan_bump_frame()
187 cf->can_id = CAN_RTR_FLAG; in slcan_bump_frame()
191 cf->len = sl->rbuff[SLCAN_CMD_LEN + SLCAN_SFF_ID_LEN]; in slcan_bump_frame()
197 cf->can_id = CAN_RTR_FLAG; in slcan_bump_frame()
200 cf->can_id |= CAN_EFF_FLAG; in slcan_bump_frame()
202 cf->len = sl->rbuff[SLCAN_CMD_LEN + SLCAN_EFF_ID_LEN]; in slcan_bump_frame()
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()
[all …]
/linux-6.12.1/drivers/net/can/peak_canfd/
Dpeak_canfd.c255 struct canfd_frame *cf; in pucan_handle_can_rx() local
291 skb = alloc_canfd_skb(priv->ndev, &cf); in pucan_handle_can_rx()
296 cf->flags |= CANFD_BRS; in pucan_handle_can_rx()
299 cf->flags |= CANFD_ESI; in pucan_handle_can_rx()
302 skb = alloc_can_skb(priv->ndev, (struct can_frame **)&cf); in pucan_handle_can_rx()
307 cf->can_id = le32_to_cpu(msg->can_id); 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()
[all …]
/linux-6.12.1/drivers/net/can/rockchip/
Drockchip_canfd-core.c364 struct can_frame **cf, u32 *timestamp) in rkcanfd_alloc_can_err_skb() argument
370 skb = alloc_can_err_skb(priv->ndev, cf); in rkcanfd_alloc_can_err_skb()
399 rkcanfd_handle_error_int_reg_ec(struct rkcanfd_priv *priv, struct can_frame *cf, in rkcanfd_handle_error_int_reg_ec() argument
452 if (!cf) in rkcanfd_handle_error_int_reg_ec()
457 cf->data[3] = CAN_ERR_PROT_LOC_SOF; in rkcanfd_handle_error_int_reg_ec()
459 cf->data[3] = CAN_ERR_PROT_LOC_RTR; in rkcanfd_handle_error_int_reg_ec()
462 cf->data[3] = CAN_ERR_PROT_LOC_RES0; in rkcanfd_handle_error_int_reg_ec()
465 cf->data[3] = CAN_ERR_PROT_LOC_DLC; in rkcanfd_handle_error_int_reg_ec()
467 cf->data[3] = CAN_ERR_PROT_LOC_DATA; in rkcanfd_handle_error_int_reg_ec()
470 cf->data[3] = CAN_ERR_PROT_LOC_CRC_SEQ; in rkcanfd_handle_error_int_reg_ec()
[all …]
/linux-6.12.1/drivers/net/can/
Dxilinx_can.c655 struct canfd_frame *cf = (struct canfd_frame *)skb->data; in xcan_write_frame() local
660 if (cf->can_id & CAN_EFF_FLAG) { in xcan_write_frame()
662 id = ((cf->can_id & CAN_EFF_MASK) << XCAN_IDR_ID2_SHIFT) & in xcan_write_frame()
664 id |= (((cf->can_id & CAN_EFF_MASK) >> in xcan_write_frame()
673 if (cf->can_id & CAN_RTR_FLAG) in xcan_write_frame()
678 id = ((cf->can_id & CAN_SFF_MASK) << XCAN_IDR_ID1_SHIFT) & in xcan_write_frame()
681 if (cf->can_id & CAN_RTR_FLAG) in xcan_write_frame()
686 dlc = can_fd_len2dlc(cf->len) << XCAN_DLCR_DLC_SHIFT; in xcan_write_frame()
688 if (cf->flags & CANFD_BRS) in xcan_write_frame()
708 for (i = 0; i < cf->len; i += 4) { in xcan_write_frame()
[all …]
Djanz-ican3.c912 struct can_frame *cf) in ican3_to_can_frame() argument
916 cf->can_id |= CAN_RTR_FLAG; in ican3_to_can_frame()
918 cf->can_id |= desc->data[0] << 3; in ican3_to_can_frame()
919 cf->can_id |= (desc->data[1] & 0xe0) >> 5; in ican3_to_can_frame()
920 cf->len = can_cc_dlc2len(desc->data[1] & ICAN3_CAN_DLC_MASK); in ican3_to_can_frame()
921 memcpy(cf->data, &desc->data[2], cf->len); in ican3_to_can_frame()
923 cf->len = can_cc_dlc2len(desc->data[0] & ICAN3_CAN_DLC_MASK); in ican3_to_can_frame()
925 cf->can_id |= CAN_RTR_FLAG; in ican3_to_can_frame()
928 cf->can_id |= CAN_EFF_FLAG; in ican3_to_can_frame()
929 cf->can_id |= desc->data[2] << 21; /* 28-21 */ in ican3_to_can_frame()
[all …]
Dat91_can.c474 struct can_frame *cf = (struct can_frame *)skb->data; in at91_start_xmit() local
490 reg_mid = at91_can_id_to_reg_mid(cf->can_id); in at91_start_xmit()
492 reg_mcr = FIELD_PREP(AT91_MCR_MDLC_MASK, cf->len) | in at91_start_xmit()
495 if (cf->can_id & CAN_RTR_FLAG) in at91_start_xmit()
503 at91_write(priv, AT91_MDL(mb), *(u32 *)(cf->data + 0)); in at91_start_xmit()
504 at91_write(priv, AT91_MDH(mb), *(u32 *)(cf->data + 4)); in at91_start_xmit()
538 struct can_frame **cf, u32 *timestamp) in at91_alloc_can_err_skb() argument
544 return alloc_can_err_skb(dev, cf); in at91_alloc_can_err_skb()
556 struct can_frame *cf; in at91_rx_overflow_err() local
564 skb = at91_alloc_can_err_skb(dev, &cf, &timestamp); in at91_rx_overflow_err()
[all …]
/linux-6.12.1/drivers/net/ethernet/amd/pds_core/
Dauxbus.c137 static struct pds_auxiliary_dev *pdsc_auxbus_dev_register(struct pdsc *cf, in pdsc_auxbus_dev_register() argument
150 padev->vf_pdev = cf->pdev; in pdsc_auxbus_dev_register()
155 aux_dev->id = cf->uid; in pdsc_auxbus_dev_register()
156 aux_dev->dev.parent = cf->dev; in pdsc_auxbus_dev_register()
161 dev_warn(cf->dev, "auxiliary_device_init of %s failed: %pe\n", in pdsc_auxbus_dev_register()
169 dev_warn(cf->dev, "auxiliary_device_add of %s failed: %pe\n", in pdsc_auxbus_dev_register()
178 int pdsc_auxbus_dev_del(struct pdsc *cf, struct pdsc *pf) in pdsc_auxbus_dev_del() argument
183 if (!cf) in pdsc_auxbus_dev_del()
188 padev = pf->vfs[cf->vf_id].padev; in pdsc_auxbus_dev_del()
195 pf->vfs[cf->vf_id].padev = NULL; in pdsc_auxbus_dev_del()
[all …]
/linux-6.12.1/drivers/net/can/ctucanfd/
Dctucanfd_base.c515 static bool ctucan_insert_frame(struct ctucan_priv *priv, const struct canfd_frame *cf, u8 buf, in ctucan_insert_frame() argument
529 if (cf->len > CANFD_MAX_DLEN) in ctucan_insert_frame()
533 if (cf->can_id & CAN_RTR_FLAG) in ctucan_insert_frame()
536 if (cf->can_id & CAN_EFF_FLAG) in ctucan_insert_frame()
541 if (cf->flags & CANFD_BRS) in ctucan_insert_frame()
545 ffw |= FIELD_PREP(REG_FRAME_FORMAT_W_DLC, can_fd_len2dlc(cf->len)); in ctucan_insert_frame()
548 if (cf->can_id & CAN_EFF_FLAG) in ctucan_insert_frame()
549 idw = cf->can_id & CAN_EFF_MASK; in ctucan_insert_frame()
551 idw = FIELD_PREP(REG_IDENTIFIER_W_IDENTIFIER_BASE, cf->can_id & CAN_SFF_MASK); in ctucan_insert_frame()
559 if (!(cf->can_id & CAN_RTR_FLAG)) { in ctucan_insert_frame()
[all …]
/linux-6.12.1/tools/testing/selftests/rcutorture/bin/
DconfigNR_CPUS.sh15 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.12.1/drivers/net/can/ifi_canfd/
Difi_canfd.c252 struct canfd_frame *cf; in ifi_canfd_read_fifo() local
262 skb = alloc_canfd_skb(ndev, &cf); in ifi_canfd_read_fifo()
264 skb = alloc_can_skb(ndev, (struct can_frame **)&cf); in ifi_canfd_read_fifo()
274 cf->len = can_fd_dlc2len(dlc); in ifi_canfd_read_fifo()
276 cf->len = can_cc_dlc2len(dlc); in ifi_canfd_read_fifo()
294 cf->can_id = id; in ifi_canfd_read_fifo()
297 cf->flags |= CANFD_ESI; in ifi_canfd_read_fifo()
303 cf->can_id |= CAN_RTR_FLAG; in ifi_canfd_read_fifo()
306 cf->flags |= CANFD_BRS; in ifi_canfd_read_fifo()
308 for (i = 0; i < cf->len; i += 4) { in ifi_canfd_read_fifo()
[all …]
/linux-6.12.1/drivers/net/can/esd/
Desdacc.c251 struct can_frame *cf = (struct can_frame *)skb->data; in acc_start_xmit() local
277 acc_dlc = can_get_cc_dlc(cf, priv->can.ctrlmode); in acc_start_xmit()
278 if (cf->can_id & CAN_RTR_FLAG) in acc_start_xmit()
283 if (cf->can_id & CAN_EFF_FLAG) { in acc_start_xmit()
284 acc_id = cf->can_id & CAN_EFF_MASK; in acc_start_xmit()
287 acc_id = cf->can_id & CAN_SFF_MASK; in acc_start_xmit()
294 acc_txq_put(core, acc_id, acc_dlc, cf->data); in acc_start_xmit()
437 struct can_frame *cf; in handle_core_msg_rxtxdone() local
439 skb = alloc_can_skb(core->netdev, &cf); in handle_core_msg_rxtxdone()
445 cf->can_id = msg->id & ACC_ID_ID_MASK; in handle_core_msg_rxtxdone()
[all …]
/linux-6.12.1/include/linux/can/
Dlength.h267 static inline u8 can_get_cc_dlc(const struct can_frame *cf, const u32 ctrlmode) in can_get_cc_dlc() argument
271 (cf->len == CAN_MAX_DLEN) && in can_get_cc_dlc()
272 (cf->len8_dlc > CAN_MAX_DLEN && cf->len8_dlc <= CAN_MAX_RAW_DLC)) in can_get_cc_dlc()
273 return cf->len8_dlc; in can_get_cc_dlc()
276 return cf->len; in can_get_cc_dlc()
280 static inline void can_frame_set_cc_len(struct can_frame *cf, const u8 dlc, in can_frame_set_cc_len() argument
285 cf->len8_dlc = dlc; in can_frame_set_cc_len()
288 cf->len = can_cc_dlc2len(dlc); in can_frame_set_cc_len()
/linux-6.12.1/lib/
Ddecompress.c66 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.12.1/drivers/media/test-drivers/vicodec/
Dcodec-fwht.c685 struct fwht_cframe *cf, u32 height, u32 width, in encode_plane() argument
711 fwht(input, cf->coeffs, stride, input_step, 1); in encode_plane()
712 quantize_intra(cf->coeffs, cf->de_coeffs, in encode_plane()
713 cf->i_frame_qp); in encode_plane()
717 fwht16(deltablock, cf->coeffs, 8, 0); 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()
725 add_deltas(cf->de_fwht, refp, 8, 1); in encode_plane()
726 fill_decoder_block(refp, cf->de_fwht, 8, 1); in encode_plane()
[all …]
/linux-6.12.1/drivers/net/can/sja1000/
Dsja1000.c287 struct can_frame *cf = (struct can_frame *)skb->data; in sja1000_start_xmit() local
299 fi = can_get_cc_dlc(cf, priv->can.ctrlmode); in sja1000_start_xmit()
300 id = cf->can_id; in sja1000_start_xmit()
320 for (i = 0; i < cf->len; i++) in sja1000_start_xmit()
321 priv->write_reg(priv, dreg++, cf->data[i]); in sja1000_start_xmit()
342 struct can_frame *cf; in sja1000_rx() local
350 skb = alloc_can_skb(dev, &cf); in sja1000_rx()
371 can_frame_set_cc_len(cf, fi & 0x0F, priv->can.ctrlmode); in sja1000_rx()
375 for (i = 0; i < cf->len; i++) in sja1000_rx()
376 cf->data[i] = priv->read_reg(priv, dreg++); in sja1000_rx()
[all …]
/linux-6.12.1/drivers/net/can/rcar/
Drcar_can.c225 struct can_frame *cf; in rcar_can_error() local
230 skb = alloc_can_err_skb(ndev, &cf); in rcar_can_error()
237 cf->can_id |= CAN_ERR_CRTL; in rcar_can_error()
245 cf->can_id |= CAN_ERR_BUSERROR | CAN_ERR_PROT; in rcar_can_error()
253 cf->data[3] = CAN_ERR_PROT_LOC_ACK_DEL; in rcar_can_error()
260 cf->data[2] |= CAN_ERR_PROT_BIT0; in rcar_can_error()
267 cf->data[2] |= CAN_ERR_PROT_BIT1; in rcar_can_error()
274 cf->data[3] = CAN_ERR_PROT_LOC_CRC_SEQ; in rcar_can_error()
281 cf->can_id |= CAN_ERR_ACK; in rcar_can_error()
282 cf->data[3] = CAN_ERR_PROT_LOC_ACK; in rcar_can_error()
[all …]
/linux-6.12.1/drivers/dma/
Dfsl_raid.c239 static void fill_cfd_frame(struct fsl_re_cmpnd_frame *cf, u8 index, in fill_cfd_frame() argument
245 cf[index].efrl32 = efrl; in fill_cfd_frame()
246 cf[index].addr_high = upper_32_bits(addr); in fill_cfd_frame()
247 cf[index].addr_low = lower_32_bits(addr); in fill_cfd_frame()
252 void *cf, dma_addr_t paddr) in fsl_re_init_desc() argument
262 desc->cf_addr = cf; in fsl_re_init_desc()
265 desc->cdb_addr = (void *)(cf + FSL_RE_CF_DESC_SIZE); in fsl_re_init_desc()
275 void *cf; in fsl_re_chan_alloc_desc() local
297 cf = dma_pool_alloc(re_chan->re_dev->cf_desc_pool, GFP_NOWAIT, in fsl_re_chan_alloc_desc()
299 if (!cf) { in fsl_re_chan_alloc_desc()
[all …]
/linux-6.12.1/drivers/net/can/usb/
Dusb_8dev.c336 struct can_frame *cf; in usb_8dev_rx_err_msg() local
354 skb = alloc_can_err_skb(priv->netdev, &cf); in usb_8dev_rx_err_msg()
361 cf->can_id |= CAN_ERR_PROT; in usb_8dev_rx_err_msg()
362 cf->data[2] = CAN_ERR_PROT_ACTIVE; in usb_8dev_rx_err_msg()
366 cf->can_id |= CAN_ERR_BUSOFF; in usb_8dev_rx_err_msg()
373 cf->can_id |= CAN_ERR_CRTL; in usb_8dev_rx_err_msg()
377 cf->can_id |= CAN_ERR_PROT | CAN_ERR_BUSERROR; in usb_8dev_rx_err_msg()
387 cf->can_id |= CAN_ERR_ACK; in usb_8dev_rx_err_msg()
391 cf->data[3] = CAN_ERR_PROT_LOC_CRC_SEQ; in usb_8dev_rx_err_msg()
395 cf->data[2] |= CAN_ERR_PROT_BIT0; in usb_8dev_rx_err_msg()
[all …]
Df81604.c374 struct can_frame *cf; in f81604_process_rx_packet() local
380 skb = alloc_can_skb(netdev, &cf); in f81604_process_rx_packet()
386 cf->len = can_cc_dlc2len(frame->dlc & F81604_DLC_LEN_MASK); in f81604_process_rx_packet()
389 cf->can_id = get_unaligned_be32(&frame->eff.id) >> in f81604_process_rx_packet()
391 cf->can_id |= CAN_EFF_FLAG; in f81604_process_rx_packet()
394 memcpy(cf->data, frame->eff.data, cf->len); in f81604_process_rx_packet()
396 cf->can_id = get_unaligned_be16(&frame->sff.id) >> in f81604_process_rx_packet()
400 memcpy(cf->data, frame->sff.data, cf->len); in f81604_process_rx_packet()
404 cf->can_id |= CAN_RTR_FLAG; in f81604_process_rx_packet()
406 stats->rx_bytes += cf->len; in f81604_process_rx_packet()
[all …]

1234567