Home
last modified time | relevance | path

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

1234

/linux/net/bluetooth/rfcomm/
A Dtty.c84 struct rfcomm_dlc *dlc = dev->dlc; in rfcomm_dev_destruct() local
300 dev->dlc = dlc; in __rfcomm_dev_add()
302 rfcomm_dev_modem_status(dlc, dlc->remote_v24_sig); in __rfcomm_dev_add()
355 struct rfcomm_dlc *dlc = dev->dlc; in rfcomm_room() local
411 dlc = rfcomm_pi(sk)->dlc; in __rfcomm_create_dev()
418 if (dlc) in __rfcomm_create_dev()
421 if (!dlc) in __rfcomm_create_dev()
719 dlc = dev->dlc; in rfcomm_tty_install()
786 struct rfcomm_dlc *dlc = dev->dlc; in rfcomm_tty_write() local
871 if (!dev || !dev->dlc || !dev->dlc->session) in rfcomm_tty_set_termios()
[all …]
A Dsock.c155 struct rfcomm_dlc *d = rfcomm_pi(sk)->dlc; in rfcomm_sock_destruct()
163 rfcomm_pi(sk)->dlc = NULL; in rfcomm_sock_destruct()
207 struct rfcomm_dlc *d = rfcomm_pi(sk)->dlc; in __rfcomm_sock_close()
255 pi->dlc->defer_setup = 0; in rfcomm_sock_init()
261 pi->dlc->sec_level = pi->sec_level; in rfcomm_sock_init()
262 pi->dlc->role_switch = pi->role_switch; in rfcomm_sock_init()
292 rfcomm_pi(sk)->dlc = d; in rfcomm_sock_alloc()
385 struct rfcomm_dlc *d = rfcomm_pi(sk)->dlc; in rfcomm_sock_connect()
560 struct rfcomm_dlc *d = rfcomm_pi(sk)->dlc; in rfcomm_sock_sendmsg()
780 !rfcomm_pi(sk)->dlc->defer_setup) { in rfcomm_sock_getsockopt_old()
[all …]
/linux/include/linux/can/
A Dlength.h132 #define can_cc_dlc2len(dlc) (min_t(u8, (dlc), CAN_MAX_DLEN)) argument
148 static inline void can_frame_set_cc_len(struct can_frame *cf, const u8 dlc, in can_frame_set_cc_len() argument
152 if (ctrlmode & CAN_CTRLMODE_CC_LEN8_DLC && dlc > CAN_MAX_DLEN) in can_frame_set_cc_len()
153 cf->len8_dlc = dlc; in can_frame_set_cc_len()
156 cf->len = can_cc_dlc2len(dlc); in can_frame_set_cc_len()
160 u8 can_fd_dlc2len(u8 dlc);
/linux/sound/soc/qcom/
A Dcommon.c17 struct snd_soc_dai_link_component *dlc; in qcom_snd_parse_of() local
58 dlc = devm_kzalloc(dev, 2 * sizeof(*dlc), GFP_KERNEL); in qcom_snd_parse_of()
59 if (!dlc) { in qcom_snd_parse_of()
64 link->cpus = &dlc[0]; in qcom_snd_parse_of()
65 link->platforms = &dlc[1]; in qcom_snd_parse_of()
132 dlc = devm_kzalloc(dev, sizeof(*dlc), GFP_KERNEL); in qcom_snd_parse_of()
133 if (!dlc) { in qcom_snd_parse_of()
138 link->codecs = dlc; in qcom_snd_parse_of()
/linux/sound/soc/sof/
A Dnocodec.c27 struct snd_soc_dai_link_component *dlc; in sof_nocodec_bes_setup() local
35 dlc = devm_kzalloc(dev, 3 * sizeof(*dlc), GFP_KERNEL); in sof_nocodec_bes_setup()
36 if (!dlc) in sof_nocodec_bes_setup()
46 links[i].cpus = &dlc[0]; in sof_nocodec_bes_setup()
47 links[i].codecs = &dlc[1]; in sof_nocodec_bes_setup()
48 links[i].platforms = &dlc[2]; in sof_nocodec_bes_setup()
/linux/sound/soc/ti/
A Drx51.c322 .dlc = COMP_AUX("tlv320aic3x-codec.2-0019"),
325 .dlc = COMP_AUX("tpa6130a2.2-0060"),
335 .dlc = COMP_CODEC_CONF("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()
400 rx51_codec_conf[0].dlc.name = NULL; in rx51_soc_probe()
401 rx51_codec_conf[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()
410 rx51_codec_conf[1].dlc.name = NULL; in rx51_soc_probe()
[all …]
/linux/sound/soc/fsl/
A Dimx-rpmsg.c33 struct snd_soc_dai_link_component *dlc; in imx_rpmsg_probe() local
42 dlc = devm_kzalloc(&pdev->dev, 3 * sizeof(*dlc), GFP_KERNEL); in imx_rpmsg_probe()
43 if (!dlc) in imx_rpmsg_probe()
56 data->dai.cpus = &dlc[0]; in imx_rpmsg_probe()
58 data->dai.platforms = &dlc[1]; in imx_rpmsg_probe()
60 data->dai.codecs = &dlc[2]; in imx_rpmsg_probe()
A Dimx-audmix.c208 struct snd_soc_dai_link_component *dlc; in imx_audmix_probe() local
211 dlc = devm_kcalloc(&pdev->dev, 6, sizeof(*dlc), GFP_KERNEL); in imx_audmix_probe()
212 if (!dlc) in imx_audmix_probe()
241 priv->dai[i].cpus = &dlc[0]; in imx_audmix_probe()
242 priv->dai[i].codecs = &dlc[1]; in imx_audmix_probe()
243 priv->dai[i].platforms = &dlc[2]; in imx_audmix_probe()
270 priv->dai[num_dai + i].cpus = &dlc[3]; in imx_audmix_probe()
271 priv->dai[num_dai + i].codecs = &dlc[4]; in imx_audmix_probe()
272 priv->dai[num_dai + i].platforms = &dlc[5]; in imx_audmix_probe()
290 priv->dai_conf[i].dlc.of_node = args.np; in imx_audmix_probe()
A Dimx-hdmi.c102 struct snd_soc_dai_link_component *dlc; in imx_hdmi_probe() local
108 dlc = devm_kzalloc(&pdev->dev, 3 * sizeof(*dlc), GFP_KERNEL); in imx_hdmi_probe()
109 if (!dlc) in imx_hdmi_probe()
132 data->dai.cpus = &dlc[0]; in imx_hdmi_probe()
134 data->dai.platforms = &dlc[1]; in imx_hdmi_probe()
136 data->dai.codecs = &dlc[2]; in imx_hdmi_probe()
A Dimx-card.c477 struct snd_soc_dai_link_component *dlc; in imx_card_parse_of() local
519 dlc = devm_kzalloc(dev, 2 * sizeof(*dlc), GFP_KERNEL); in imx_card_parse_of()
520 if (!dlc) { in imx_card_parse_of()
525 link->cpus = &dlc[0]; in imx_card_parse_of()
526 link->platforms = &dlc[1]; in imx_card_parse_of()
595 dlc = devm_kzalloc(dev, sizeof(*dlc), GFP_KERNEL); in imx_card_parse_of()
596 if (!dlc) { in imx_card_parse_of()
601 link->codecs = dlc; in imx_card_parse_of()
/linux/sound/soc/generic/
A Daudio-graph-card.c112 static bool soc_component_is_pcm(struct snd_soc_dai_link_component *dlc) in soc_component_is_pcm() argument
114 struct snd_soc_dai *dai = snd_soc_find_dai_with_mutex(dlc); in soc_component_is_pcm()
124 struct snd_soc_dai_link_component *dlc, in asoc_simple_parse_dai() argument
160 ret = snd_soc_get_dai_name(&args, &dlc->dai_name); in asoc_simple_parse_dai()
164 dlc->of_node = node; in asoc_simple_parse_dai()
218 struct snd_soc_dai_link_component *dlc; in graph_parse_node() local
223 dlc = asoc_link_to_cpu(dai_link, 0); in graph_parse_node()
226 dlc = asoc_link_to_codec(dai_link, 0); in graph_parse_node()
232 ret = asoc_simple_parse_dai(ep, dlc, cpu); in graph_parse_node()
240 ret = asoc_simple_parse_clk(dev, ep, dai, dlc); in graph_parse_node()
A Daudio-graph-card2.c396 struct snd_soc_dai_link_component *dlc, in asoc_simple_parse_dai() argument
432 ret = snd_soc_get_dai_name(&args, &dlc->dai_name); in asoc_simple_parse_dai()
436 dlc->of_node = node; in asoc_simple_parse_dai()
484 struct snd_soc_dai_link_component *dlc; in __graph_parse_node() local
489 dlc = asoc_link_to_cpu(dai_link, idx); in __graph_parse_node()
492 dlc = asoc_link_to_codec(dai_link, idx); in __graph_parse_node()
498 ret = asoc_simple_parse_dai(ep, dlc, &is_single_links); in __graph_parse_node()
506 ret = asoc_simple_parse_clk(dev, ep, dai, dlc); in __graph_parse_node()
514 struct snd_soc_dai_link_component *cpus = dlc; in __graph_parse_node()
571 struct snd_soc_dai_link_component *cpus = dlc; in __graph_parse_node()
A 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()
123 struct snd_soc_dai_link_component *dlc; in simple_parse_node() local
128 dlc = asoc_link_to_cpu(dai_link, 0); in simple_parse_node()
131 dlc = asoc_link_to_codec(dai_link, 0); in simple_parse_node()
137 ret = asoc_simple_parse_dai(np, dlc, cpu); in simple_parse_node()
141 ret = asoc_simple_parse_clk(dev, np, dai, dlc); in simple_parse_node()
/linux/sound/soc/intel/boards/
A Dsof_realtek_common.c37 .dlc = COMP_CODEC_CONF(RT1011_DEV0_NAME),
41 .dlc = COMP_CODEC_CONF(RT1011_DEV1_NAME),
165 .dlc = COMP_CODEC_CONF(RT1015P_DEV0_NAME),
169 .dlc = COMP_CODEC_CONF(RT1015P_DEV1_NAME),
/linux/drivers/net/can/usb/
A Dmcba_usb.c67 u8 dlc; member
94 u8 dlc; member
189 ctx->dlc = cf->len; in mcba_usb_get_free_ctx()
192 ctx->dlc = 0; in mcba_usb_get_free_ctx()
239 netdev->stats.tx_bytes += ctx->dlc; in mcba_usb_write_bulk_callback()
353 usb_msg.dlc = cf->len; 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()
453 if (msg->dlc & MCBA_DLC_RTR_MASK) in mcba_usb_process_can()
456 cf->len = can_cc_dlc2len(msg->dlc & MCBA_DLC_MASK); in mcba_usb_process_can()
/linux/sound/soc/meson/
A Daxg-card.c109 struct snd_soc_dai_link_component *dlc; in axg_card_add_tdm_loopback() local
123 dlc = devm_kzalloc(card->dev, 2 * sizeof(*dlc), GFP_KERNEL); in axg_card_add_tdm_loopback()
124 if (!dlc) in axg_card_add_tdm_loopback()
127 lb->cpus = &dlc[0]; in axg_card_add_tdm_loopback()
128 lb->codecs = &dlc[1]; in axg_card_add_tdm_loopback()
/linux/drivers/net/can/
A Dxilinx_can.c553 u32 id, dlc, data[2] = {0, 0}; in xcan_write_frame() local
585 dlc = can_fd_len2dlc(cf->len) << XCAN_DLCR_DLC_SHIFT; in xcan_write_frame()
588 dlc |= XCAN_DLCR_BRS_MASK; in xcan_write_frame()
589 dlc |= XCAN_DLCR_EDL_MASK; in xcan_write_frame()
747 u32 id_xcan, dlc, data[2] = {0, 0}; in xcan_rx() local
761 cf->len = can_cc_dlc2len(dlc); in xcan_rx()
820 if (dlc & XCAN_DLCR_EDL_MASK) in xcanfd_rx()
833 if (dlc & XCAN_DLCR_EDL_MASK) in xcanfd_rx()
834 cf->len = can_fd_dlc2len((dlc & XCAN_DLCR_DLC_MASK) >> in xcanfd_rx()
853 if (!(dlc & XCAN_DLCR_EDL_MASK) && (id_xcan & in xcanfd_rx()
[all …]
/linux/drivers/net/can/usb/etas_es58x/
A Des581_4.h81 u8 dlc; member
111 u8 dlc; member
122 u8 dlc; member
A Des58x_fd.c40 __msg_len = can_cc_dlc2len(__msg.dlc); \
138 u8 dlc; in es58x_fd_rx_can_msg() local
141 dlc = can_fd_len2dlc(rx_can_msg->len); in es58x_fd_rx_can_msg()
143 dlc = rx_can_msg->dlc; in es58x_fd_rx_can_msg()
146 can_id, rx_can_msg->flags, dlc); in es58x_fd_rx_can_msg()
367 tx_can_msg->dlc = can_get_cc_dlc(cf, priv->can.ctrlmode); in es58x_fd_tx_can_msg()
/linux/sound/soc/
A Dsoc-core.c744 if (!dlc) in snd_soc_is_matching_component()
749 if (dlc->of_node && component_of_node != dlc->of_node) in snd_soc_is_matching_component()
751 if (dlc->name && strcmp(component->name, dlc->name)) in snd_soc_is_matching_component()
803 if (dlc->dai_name && strcmp(dai->name, dlc->dai_name) in snd_soc_find_dai()
822 dai = snd_soc_find_dai(dlc); in snd_soc_find_dai_with_mutex()
2896 codec_conf->dlc.of_node = of_node; in snd_soc_of_parse_node_prefix()
2975 if (!aux->dlc.of_node) in snd_soc_of_parse_aux_devs()
3153 struct snd_soc_dai_link_component dlc; in snd_soc_get_dai_id() local
3157 dlc.name = NULL; in snd_soc_get_dai_id()
3166 component = soc_find_component(&dlc); in snd_soc_get_dai_id()
[all …]
/linux/drivers/net/can/rcar/
A Drcar_can.c46 u8 dlc; /* Data Length Code - bits [0..3] */ member
617 writeb(cf->len, &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->len = can_cc_dlc2len(dlc); in rcar_can_rx_pkt()
666 for (dlc = 0; dlc < cf->len; 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/drivers/net/can/dev/
A Dlength.c15 u8 can_fd_dlc2len(u8 dlc) in can_fd_dlc2len() argument
17 return dlc2len[dlc & 0x0F]; in can_fd_dlc2len()
/linux/Documentation/devicetree/bindings/display/panel/
A Ddlc,dlc0700yzg-1.yaml4 $id: http://devicetree.org/schemas/display/panel/dlc,dlc0700yzg-1.yaml#
18 const: dlc,dlc0700yzg-1
/linux/sound/soc/sunxi/
A Dsun4i-codec.c1300 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()
1429 .dlc = COMP_EMPTY(),
1441 aux_dev.dlc.of_node = of_parse_phandle(dev->of_node, in sun8i_a23_codec_create_card()
1444 if (!aux_dev.dlc.of_node) { in sun8i_a23_codec_create_card()
1480 aux_dev.dlc.of_node = of_parse_phandle(dev->of_node, in sun8i_h3_codec_create_card()
1483 if (!aux_dev.dlc.of_node) { in sun8i_h3_codec_create_card()
[all …]
/linux/sound/soc/mediatek/mt8183/
A Dmt8183-da7219-max98357.c569 .dlc = COMP_EMPTY(),
575 .dlc = COMP_CODEC_CONF("mt6358-sound"),
615 .dlc = COMP_CODEC_CONF("mt6358-sound"),
619 .dlc = COMP_CODEC_CONF(RT1015_DEV0_NAME),
623 .dlc = COMP_CODEC_CONF(RT1015_DEV1_NAME),
761 mt8183_da7219_max98357_headset_dev.dlc.of_node = in mt8183_da7219_max98357_dev_probe()
764 if (!mt8183_da7219_max98357_headset_dev.dlc.of_node) { in mt8183_da7219_max98357_dev_probe()

Completed in 57 milliseconds

1234