Home
last modified time | relevance | path

Searched refs:dlc (Results 1 – 25 of 52) sorted by relevance

123

/Linux-v5.4/net/bluetooth/rfcomm/
Dtty.c63 struct rfcomm_dlc *dlc; member
75 static void rfcomm_dev_data_ready(struct rfcomm_dlc *dlc, struct sk_buff *skb);
76 static void rfcomm_dev_state_change(struct rfcomm_dlc *dlc, int err);
77 static void rfcomm_dev_modem_status(struct rfcomm_dlc *dlc, u8 v24_sig);
84 struct rfcomm_dlc *dlc = dev->dlc; in rfcomm_dev_destruct() local
86 BT_DBG("dev %p dlc %p", dev, dlc); in rfcomm_dev_destruct()
88 rfcomm_dlc_lock(dlc); in rfcomm_dev_destruct()
90 if (dlc->owner == dev) in rfcomm_dev_destruct()
91 dlc->owner = NULL; in rfcomm_dev_destruct()
92 rfcomm_dlc_unlock(dlc); in rfcomm_dev_destruct()
[all …]
Dsock.c158 struct rfcomm_dlc *d = rfcomm_pi(sk)->dlc; in rfcomm_sock_destruct()
166 rfcomm_pi(sk)->dlc = NULL; in rfcomm_sock_destruct()
210 struct rfcomm_dlc *d = rfcomm_pi(sk)->dlc; in __rfcomm_sock_close()
250 pi->dlc->defer_setup = test_bit(BT_SK_DEFER_SETUP, in rfcomm_sock_init()
258 pi->dlc->defer_setup = 0; in rfcomm_sock_init()
264 pi->dlc->sec_level = pi->sec_level; in rfcomm_sock_init()
265 pi->dlc->role_switch = pi->role_switch; in rfcomm_sock_init()
295 rfcomm_pi(sk)->dlc = d; in rfcomm_sock_alloc()
388 struct rfcomm_dlc *d = rfcomm_pi(sk)->dlc; in rfcomm_sock_connect()
563 struct rfcomm_dlc *d = rfcomm_pi(sk)->dlc; in rfcomm_sock_sendmsg()
[all …]
/Linux-v5.4/sound/soc/qcom/
Dcommon.c17 struct snd_soc_dai_link_component *dlc; in qcom_snd_parse_of() local
46 dlc = devm_kzalloc(dev, 2 * sizeof(*dlc), GFP_KERNEL); in qcom_snd_parse_of()
47 if (!dlc) in qcom_snd_parse_of()
50 link->cpus = &dlc[0]; in qcom_snd_parse_of()
51 link->platforms = &dlc[1]; in qcom_snd_parse_of()
105 dlc = devm_kzalloc(dev, sizeof(*dlc), GFP_KERNEL); in qcom_snd_parse_of()
106 if (!dlc) in qcom_snd_parse_of()
109 link->codecs = dlc; in qcom_snd_parse_of()
Dapq8016_sbc.c120 struct snd_soc_dai_link_component *dlc; in apq8016_sbc_parse_of() local
154 dlc = devm_kzalloc(dev, 2 * sizeof(*dlc), GFP_KERNEL); in apq8016_sbc_parse_of()
155 if (!dlc) in apq8016_sbc_parse_of()
158 link->cpus = &dlc[0]; in apq8016_sbc_parse_of()
159 link->platforms = &dlc[1]; in apq8016_sbc_parse_of()
/Linux-v5.4/sound/soc/sof/
Dnocodec.c24 struct snd_soc_dai_link_component *dlc; in sof_nocodec_bes_setup() local
32 dlc = devm_kzalloc(dev, 3 * sizeof(*dlc), GFP_KERNEL); in sof_nocodec_bes_setup()
33 if (!dlc) in sof_nocodec_bes_setup()
41 links[i].cpus = &dlc[0]; in sof_nocodec_bes_setup()
42 links[i].codecs = &dlc[1]; in sof_nocodec_bes_setup()
43 links[i].platforms = &dlc[2]; in sof_nocodec_bes_setup()
/Linux-v5.4/sound/soc/fsl/
Dimx-audmix.c208 struct snd_soc_dai_link_component *dlc; in imx_audmix_probe() local
211 dlc = devm_kzalloc(&pdev->dev, 6 * sizeof(*dlc), GFP_KERNEL); in imx_audmix_probe()
212 if (!dlc) { in imx_audmix_probe()
243 priv->dai[i].cpus = &dlc[0]; in imx_audmix_probe()
244 priv->dai[i].codecs = &dlc[1]; in imx_audmix_probe()
245 priv->dai[i].platforms = &dlc[2]; in imx_audmix_probe()
272 priv->dai[num_dai + i].cpus = &dlc[3]; in imx_audmix_probe()
273 priv->dai[num_dai + i].codecs = &dlc[4]; in imx_audmix_probe()
274 priv->dai[num_dai + i].platforms = &dlc[5]; in imx_audmix_probe()
/Linux-v5.4/sound/soc/ti/
Drx51.c322 .dlc = COMP_AUX("tlv320aic3x-codec.2-0019"),
325 .dlc = COMP_AUX("tpa6130a2.2-0060"),
398 rx51_aux_dev[0].dlc.name = NULL; in rx51_soc_probe()
399 rx51_aux_dev[0].dlc.of_node = dai_node; in rx51_soc_probe()
408 rx51_aux_dev[1].dlc.name = NULL; in rx51_soc_probe()
409 rx51_aux_dev[1].dlc.of_node = dai_node; in rx51_soc_probe()
/Linux-v5.4/drivers/net/can/usb/
Dmcba_usb.c67 u8 dlc; member
92 u8 dlc; member
187 ctx->dlc = cf->can_dlc; in mcba_usb_get_free_ctx()
190 ctx->dlc = 0; in mcba_usb_get_free_ctx()
237 netdev->stats.tx_bytes += ctx->dlc; in mcba_usb_write_bulk_callback()
353 usb_msg.dlc = cf->can_dlc; in mcba_usb_start_xmit()
355 memcpy(usb_msg.data, cf->data, usb_msg.dlc); in mcba_usb_start_xmit()
358 usb_msg.dlc |= MCBA_DLC_RTR_MASK; in mcba_usb_start_xmit()
451 if (msg->dlc & MCBA_DLC_RTR_MASK) in mcba_usb_process_can()
454 cf->can_dlc = get_can_dlc(msg->dlc & MCBA_DLC_MASK); in mcba_usb_process_can()
Ducan.c212 u8 dlc; /* RTR dlc */ member
262 u8 dlc; member
309 return get_can_dlc(msg->dlc); in ucan_get_can_dlc()
637 u8 echo_index, dlc; in ucan_tx_complete_msg() local
661 dlc = READ_ONCE(context->dlc); in ucan_tx_complete_msg()
674 up->netdev->stats.tx_bytes += dlc; in ucan_tx_complete_msg()
1079 offsetof(struct ucan_can_msg, dlc) + in ucan_prepare_tx_urb()
1080 sizeof(m->msg.can_msg.dlc); in ucan_prepare_tx_urb()
1081 m->msg.can_msg.dlc = cf->can_dlc; in ucan_prepare_tx_urb()
1089 context->dlc = cf->can_dlc; in ucan_prepare_tx_urb()
Dusb_8dev.c117 u8 dlc; member
148 u8 dlc; /* data length code 0-8 bytes */ member
159 u8 dlc; /* data length code 0-8 bytes */ member
473 cf->can_dlc = get_can_dlc(msg->dlc & 0xF); in usb_8dev_rx_can_msg()
586 netdev->stats.tx_bytes += context->dlc; in usb_8dev_write_bulk_callback()
640 msg->dlc = cf->can_dlc; in usb_8dev_start_xmit()
659 context->dlc = cf->can_dlc; in usb_8dev_start_xmit()
Desd_usb2.c119 u8 dlc; member
129 u8 dlc; member
186 int dlc; member
324 cf->can_dlc = get_can_dlc(msg->msg.rx.dlc & ~ESD_RTR); in esd_usb2_rx_can_msg()
329 if (msg->msg.rx.dlc & ESD_RTR) { in esd_usb2_rx_can_msg()
358 stats->tx_bytes += context->dlc; in esd_usb2_tx_done_msg()
740 msg->msg.tx.dlc = cf->can_dlc; in esd_usb2_start_xmit()
744 msg->msg.tx.dlc |= ESD_RTR; in esd_usb2_start_xmit()
772 context->dlc = cf->can_dlc; in esd_usb2_start_xmit()
/Linux-v5.4/sound/soc/meson/
Daxg-card.c128 of_node_put(aux->dlc.of_node); in axg_card_clean_references()
162 aux->dlc.of_node = in axg_card_add_aux_devices()
164 if (!aux->dlc.of_node) in axg_card_add_aux_devices()
259 struct snd_soc_dai_link_component *dlc; in axg_card_add_tdm_loopback() local
273 dlc = devm_kzalloc(card->dev, 2 * sizeof(*dlc), GFP_KERNEL); in axg_card_add_tdm_loopback()
274 if (!dlc) in axg_card_add_tdm_loopback()
277 lb->cpus = &dlc[0]; in axg_card_add_tdm_loopback()
278 lb->codecs = &dlc[1]; in axg_card_add_tdm_loopback()
/Linux-v5.4/drivers/net/can/
Dxilinx_can.c547 u32 id, dlc, data[2] = {0, 0}; in xcan_write_frame() local
578 dlc = can_len2dlc(cf->len) << XCAN_DLCR_DLC_SHIFT; in xcan_write_frame()
581 dlc |= XCAN_DLCR_BRS_MASK; in xcan_write_frame()
582 dlc |= XCAN_DLCR_EDL_MASK; in xcan_write_frame()
589 priv->write_reg(priv, XCAN_FRAME_DLC_OFFSET(frame_offset), dlc); in xcan_write_frame()
740 u32 id_xcan, dlc, data[2] = {0, 0}; in xcan_rx() local
750 dlc = priv->read_reg(priv, XCAN_FRAME_DLC_OFFSET(frame_base)) >> in xcan_rx()
754 cf->can_dlc = get_can_dlc(dlc); in xcan_rx()
809 u32 id_xcan, dlc, data[2] = {0, 0}, dwindex = 0, i, dw_offset; in xcanfd_rx() local
812 dlc = priv->read_reg(priv, XCAN_FRAME_DLC_OFFSET(frame_base)); in xcanfd_rx()
[all …]
/Linux-v5.4/drivers/net/can/rcar/
Drcar_can.c46 u8 dlc; /* Data Length Code - bits [0..3] */ member
617 writeb(cf->can_dlc, &priv->regs->mb[RCAR_CAN_TX_FIFO_MBX].dlc); in rcar_can_start_xmit()
647 u8 dlc; in rcar_can_rx_pkt() local
661 dlc = readb(&priv->regs->mb[RCAR_CAN_RX_FIFO_MBX].dlc); in rcar_can_rx_pkt()
662 cf->can_dlc = get_can_dlc(dlc); in rcar_can_rx_pkt()
666 for (dlc = 0; dlc < cf->can_dlc; dlc++) in rcar_can_rx_pkt()
667 cf->data[dlc] = in rcar_can_rx_pkt()
668 readb(&priv->regs->mb[RCAR_CAN_RX_FIFO_MBX].data[dlc]); in rcar_can_rx_pkt()
/Linux-v5.4/sound/soc/rockchip/
Drockchip_max98090.c177 .dlc = COMP_EMPTY(),
243 rk_98090_headset_dev.dlc.of_node = of_parse_phandle(np, in snd_rk_mc_probe()
245 if (!rk_98090_headset_dev.dlc.of_node) { in snd_rk_mc_probe()
/Linux-v5.4/sound/soc/sunxi/
Dsun4i-codec.c1299 struct snd_soc_dai_link_component *dlc = devm_kzalloc(dev, in sun4i_codec_create_link() local
1300 3 * sizeof(*dlc), GFP_KERNEL); in sun4i_codec_create_link()
1301 if (!link || !dlc) in sun4i_codec_create_link()
1304 link->cpus = &dlc[0]; in sun4i_codec_create_link()
1305 link->codecs = &dlc[1]; in sun4i_codec_create_link()
1306 link->platforms = &dlc[2]; in sun4i_codec_create_link()
1427 .dlc = COMP_EMPTY(),
1439 aux_dev.dlc.of_node = of_parse_phandle(dev->of_node, in sun8i_a23_codec_create_card()
1442 if (!aux_dev.dlc.of_node) { in sun8i_a23_codec_create_card()
1477 aux_dev.dlc.of_node = of_parse_phandle(dev->of_node, in sun8i_h3_codec_create_card()
[all …]
/Linux-v5.4/net/can/j1939/
Dmain.c305 int ret, dlc; in j1939_send_one() local
322 dlc = skb->len; in j1939_send_one()
328 skb_put(skb, J1939_CAN_FTR + (8 - dlc)); in j1939_send_one()
338 cf->can_dlc = dlc; in j1939_send_one()
/Linux-v5.4/sound/soc/
Dsoc-core.c744 const struct snd_soc_dai_link_component *dlc, in snd_soc_is_matching_component() argument
749 if (!dlc) in snd_soc_is_matching_component()
754 if (dlc->of_node && component_of_node != dlc->of_node) in snd_soc_is_matching_component()
756 if (dlc->name && strcmp(component->name, dlc->name)) in snd_soc_is_matching_component()
763 const struct snd_soc_dai_link_component *dlc) in soc_find_component() argument
778 if (snd_soc_is_matching_component(dlc, component)) in soc_find_component()
796 const struct snd_soc_dai_link_component *dlc) in snd_soc_find_dai() argument
805 if (!snd_soc_is_matching_component(dlc, component)) in snd_soc_find_dai()
808 if (dlc->dai_name && strcmp(dai->name, dlc->dai_name) in snd_soc_find_dai()
810 || strcmp(dai->driver->name, dlc->dai_name))) in snd_soc_find_dai()
[all …]
/Linux-v5.4/drivers/net/can/usb/kvaser_usb/
Dkvaser_usb_hydra.c233 u8 dlc; member
247 u8 dlc; member
336 u8 dlc; member
1123 stats->tx_bytes += can_dlc2len(context->dlc); in kvaser_usb_hydra_tx_acknowledge()
1183 cf->can_dlc = get_can_dlc(cmd->rx_can.dlc); in kvaser_usb_hydra_rx_msg_std()
1205 u8 dlc; in kvaser_usb_hydra_rx_msg_ext() local
1216 dlc = (kcan_header & KVASER_USB_KCAN_DATA_DLC_MASK) >> in kvaser_usb_hydra_rx_msg_ext()
1254 cf->len = can_dlc2len(get_canfd_dlc(dlc)); in kvaser_usb_hydra_rx_msg_ext()
1260 cf->len = get_can_dlc(dlc); in kvaser_usb_hydra_rx_msg_ext()
1354 u8 dlc = can_len2dlc(cf->len); in kvaser_usb_hydra_frame_to_cmd_ext() local
[all …]
/Linux-v5.4/sound/soc/mediatek/mt8183/
Dmt8183-da7219-max98357.c364 .dlc = COMP_EMPTY(),
430 mt8183_da7219_max98357_headset_dev.dlc.of_node = in mt8183_da7219_max98357_dev_probe()
433 if (!mt8183_da7219_max98357_headset_dev.dlc.of_node) { in mt8183_da7219_max98357_dev_probe()
Dmt8183-mt6358-ts3a227-max98357.c424 .dlc = COMP_EMPTY(),
453 mt8183_mt6358_ts3a227_max98357_headset_dev.dlc.of_node = in mt8183_mt6358_ts3a227_max98357_dev_probe()
456 if (mt8183_mt6358_ts3a227_max98357_headset_dev.dlc.of_node) { in mt8183_mt6358_ts3a227_max98357_dev_probe()
/Linux-v5.4/Documentation/devicetree/bindings/display/panel/
Ddlc,dlc1010gig.txt4 - compatible: should be "dlc,dlc1010gig"
/Linux-v5.4/sound/soc/samsung/
Dtm2_wm5110.c336 amp_pdm_dai = snd_soc_find_dai(&tm2_speaker_amp_dev.dlc); in tm2_late_probe()
533 card->aux_dev[0].dlc.of_node = of_parse_phandle(dev->of_node, in tm2_probe()
535 if (!card->aux_dev[0].dlc.of_node) { in tm2_probe()
624 of_node_put(card->aux_dev[0].dlc.of_node); in tm2_probe()
/Linux-v5.4/sound/soc/generic/
Dsimple-card.c32 struct snd_soc_dai_link_component *dlc, in asoc_simple_parse_dai() argument
68 ret = snd_soc_of_get_dai_name(node, &dlc->dai_name); in asoc_simple_parse_dai()
72 dlc->of_node = args.np; in asoc_simple_parse_dai()
445 card->aux_dev[i].dlc.of_node = aux_node; in simple_parse_aux_devs()
/Linux-v5.4/drivers/net/can/cc770/
Dcc770.c389 u8 dlc, rtr; in cc770_tx() local
393 dlc = cf->can_dlc; in cc770_tx()
405 (dlc << 4) | rtr | MSGCFG_XTD); in cc770_tx()
412 cc770_write_reg(priv, msgobj[mo].config, (dlc << 4) | rtr); in cc770_tx()
417 for (i = 0; i < dlc; i++) in cc770_tx()

123