/Linux-v5.15/net/bluetooth/rfcomm/ |
D | tty.c | 63 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() 89 /* Detach DLC if it's owned by this dev */ in rfcomm_dev_destruct() 90 if (dlc->owner == dev) in rfcomm_dev_destruct() 91 dlc->owner = NULL; in rfcomm_dev_destruct() [all …]
|
D | sock.c | 46 /* ---- DLC callbacks ---- 71 BT_DBG("dlc %p state %ld err %d", d, d->state, err); in rfcomm_sk_state_change() 97 /* We have to drop DLC lock here, otherwise in rfcomm_sk_state_change() 155 struct rfcomm_dlc *d = rfcomm_pi(sk)->dlc; in rfcomm_sock_destruct() 157 BT_DBG("sk %p dlc %p", sk, d); in rfcomm_sock_destruct() 163 rfcomm_pi(sk)->dlc = NULL; in rfcomm_sock_destruct() 165 /* Detach DLC if it's owned by this socket */ in rfcomm_sock_destruct() 207 struct rfcomm_dlc *d = rfcomm_pi(sk)->dlc; in __rfcomm_sock_close() 247 pi->dlc->defer_setup = test_bit(BT_SK_DEFER_SETUP, in rfcomm_sock_init() 255 pi->dlc->defer_setup = 0; in rfcomm_sock_init() [all …]
|
D | core.c | 261 BT_DBG("dlc %p state %ld", d, d->state); in rfcomm_dlc_timeout() 270 BT_DBG("dlc %p state %ld timeout %ld", d, d->state, timeout); in rfcomm_dlc_set_timer() 278 BT_DBG("dlc %p state %ld", d, d->state); in rfcomm_dlc_clear_timer() 329 BT_DBG("dlc %p session %p", d, s); in rfcomm_dlc_link() 341 BT_DBG("dlc %p refcnt %d session %p", d, refcount_read(&d->refcnt), s); in rfcomm_dlc_unlink() 373 BT_DBG("dlc %p state %ld %pMR -> %pMR channel %d", in __rfcomm_dlc_open() 453 BT_DBG("dlc %p state %ld dlci %d err %d session %p", in __rfcomm_dlc_close() 479 /* if closing a dlc in a session that hasn't been started, in __rfcomm_dlc_close() 480 * just close and unlink the dlc in __rfcomm_dlc_close() 505 BT_DBG("dlc %p state %ld dlci %d err %d", d, d->state, d->dlci, err); in rfcomm_dlc_close() [all …]
|
/Linux-v5.15/include/linux/can/ |
D | length.h | 19 * Data length code (DLC) 4 44 * Data length code (DLC) 4 70 * Data length code (DLC) 4 99 * Data length code (DLC) 4 126 * can_cc_dlc2len(value) - convert a given data length code (dlc) of a 130 * ISO 11898-1 Chapter 8.4.2.3 (DLC field) 132 #define can_cc_dlc2len(dlc) (min_t(u8, (dlc), CAN_MAX_DLEN)) argument 134 /* helper to get the data length code (DLC) for Classical CAN raw DLC access */ 137 /* return len8_dlc as dlc value only if all conditions apply */ in can_get_cc_dlc() 143 /* return the payload length as dlc value */ in can_get_cc_dlc() [all …]
|
/Linux-v5.15/sound/soc/qcom/ |
D | common.c | 17 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-v5.15/sound/soc/sof/ |
D | nocodec.c | 27 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-v5.15/sound/soc/fsl/ |
D | imx-rpmsg.c | 33 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()
|
D | imx-audmix.c | 208 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()
|
D | imx-hdmi.c | 102 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()
|
D | imx-card.c | 477 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-v5.15/sound/soc/ti/ |
D | rx51.c | 322 .dlc = COMP_AUX("tlv320aic3x-codec.2-0019"), 325 .dlc = COMP_AUX("tpa6130a2.2-0060"), 331 .dlc = COMP_CODEC_CONF("tlv320aic3x-codec.2-0019"), 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() [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/display/panel/ |
D | dlc,dlc0700yzg-1.yaml | 4 $id: http://devicetree.org/schemas/display/panel/dlc,dlc0700yzg-1.yaml# 7 title: DLC Display Co. DLC0700YZG-1 7.0" WSVGA TFT LCD panel 18 const: dlc,dlc0700yzg-1
|
/Linux-v5.15/drivers/net/can/dev/ |
D | length.c | 7 /* CAN DLC to real data length conversion helpers */ 14 /* get data length from raw data length code (DLC) */ 15 u8 can_fd_dlc2len(u8 dlc) in can_fd_dlc2len() argument 17 return dlc2len[dlc & 0x0F]; in can_fd_dlc2len()
|
/Linux-v5.15/sound/soc/generic/ |
D | audio-graph-card.c | 112 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 144 * Here, dlc->dai_name is pointer to CPU/Codec DAI name. in asoc_simple_parse_dai() 146 * dlc->dai_name is keeping unbinded CPU or Codec in asoc_simple_parse_dai() 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() [all …]
|
D | simple-card.c | 32 struct snd_soc_dai_link_component *dlc, in asoc_simple_parse_dai() argument 52 * Here, dlc->dai_name is pointer to CPU/Codec DAI name. in asoc_simple_parse_dai() 54 * dlc->dai_name is keeping unbinded CPU or Codec in asoc_simple_parse_dai() 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-v5.15/drivers/net/can/usb/etas_es58x/ |
D | es58x_fd.c | 23 * @msg: message of variable length, must have a dlc and a len fields. 40 __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()
|
D | es581_4.h | 81 u8 dlc; member 111 u8 dlc; member 122 u8 dlc; member
|
/Linux-v5.15/sound/soc/intel/boards/ |
D | sof_realtek_common.c | 37 .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-v5.15/sound/soc/meson/ |
D | axg-card.c | 109 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-v5.15/drivers/net/can/usb/ |
D | mcba_usb.c | 67 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-v5.15/include/uapi/linux/ |
D | can.h | 85 /* CAN payload length and DLC definitions according to ISO 11898-1 */ 90 /* CAN FD payload length and DLC definitions according to ISO 11898-7 */ 101 * @len8_dlc: optional DLC value (9 .. 15) at 8 byte payload length 103 * 8 bytes but the DLC value (see ISO 11898-1) is greater then 8. 119 __u8 len8_dlc; /* optional DLC for 8 byte payload length (9 .. 15) */
|
/Linux-v5.15/net/can/j1939/ |
D | main.c | 64 /* fix length, set to dlc, with 8 maximum */ in j1939_can_recv() 306 int ret, dlc; in j1939_send_one() local 323 dlc = skb->len; in j1939_send_one() 329 skb_put(skb, J1939_CAN_FTR + (8 - dlc)); in j1939_send_one() 339 cf->len = dlc; in j1939_send_one()
|
/Linux-v5.15/sound/soc/ |
D | soc-core.c | 760 const struct snd_soc_dai_link_component *dlc, in snd_soc_is_matching_component() argument 765 if (!dlc) in snd_soc_is_matching_component() 770 if (dlc->of_node && component_of_node != dlc->of_node) in snd_soc_is_matching_component() 772 if (dlc->name && strcmp(component->name, dlc->name)) in snd_soc_is_matching_component() 779 const struct snd_soc_dai_link_component *dlc) in soc_find_component() argument 794 if (snd_soc_is_matching_component(dlc, component)) in soc_find_component() 803 * @dlc: name of the DAI or the DAI driver and optional component info to match 812 const struct snd_soc_dai_link_component *dlc) in snd_soc_find_dai() argument 821 if (!snd_soc_is_matching_component(dlc, component)) in snd_soc_find_dai() 824 if (dlc->dai_name && strcmp(dai->name, dlc->dai_name) in snd_soc_find_dai() [all …]
|
/Linux-v5.15/drivers/net/can/ |
D | xilinx_can.c | 132 #define XCAN_DLCR_EDL_MASK 0x08000000 /* EDL Mask in DLC */ 133 #define XCAN_DLCR_BRS_MASK 0x04000000 /* BRS Mask in DLC */ 554 u32 id, dlc, data[2] = {0, 0}; in xcan_write_frame() local 586 dlc = can_fd_len2dlc(cf->len) << XCAN_DLCR_DLC_SHIFT; in xcan_write_frame() 589 dlc |= XCAN_DLCR_BRS_MASK; in xcan_write_frame() 590 dlc |= XCAN_DLCR_EDL_MASK; in xcan_write_frame() 605 priv->write_reg(priv, XCAN_FRAME_DLC_OFFSET(frame_offset), dlc); in xcan_write_frame() 748 u32 id_xcan, dlc, data[2] = {0, 0}; in xcan_rx() local 758 dlc = priv->read_reg(priv, XCAN_FRAME_DLC_OFFSET(frame_base)) >> in xcan_rx() 762 cf->len = can_cc_dlc2len(dlc); in xcan_rx() [all …]
|
/Linux-v5.15/drivers/net/can/rcar/ |
D | rcar_can.c | 46 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()
|