/Linux-v6.6/net/bluetooth/rfcomm/ |
D | tty.c | 62 struct rfcomm_dlc *dlc; member 74 static void rfcomm_dev_data_ready(struct rfcomm_dlc *dlc, struct sk_buff *skb); 75 static void rfcomm_dev_state_change(struct rfcomm_dlc *dlc, int err); 76 static void rfcomm_dev_modem_status(struct rfcomm_dlc *dlc, u8 v24_sig); 83 struct rfcomm_dlc *dlc = dev->dlc; in rfcomm_dev_destruct() local 85 BT_DBG("dev %p dlc %p", dev, dlc); in rfcomm_dev_destruct() 87 rfcomm_dlc_lock(dlc); in rfcomm_dev_destruct() 89 if (dlc->owner == dev) in rfcomm_dev_destruct() 90 dlc->owner = NULL; in rfcomm_dev_destruct() 91 rfcomm_dlc_unlock(dlc); in rfcomm_dev_destruct() [all …]
|
D | sock.c | 155 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() 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() 261 pi->dlc->sec_level = pi->sec_level; in rfcomm_sock_init() 262 pi->dlc->role_switch = pi->role_switch; in rfcomm_sock_init() 290 rfcomm_pi(sk)->dlc = d; in rfcomm_sock_alloc() 378 struct rfcomm_dlc *d = rfcomm_pi(sk)->dlc; in rfcomm_sock_connect() 558 struct rfcomm_dlc *d = rfcomm_pi(sk)->dlc; in rfcomm_sock_sendmsg() [all …]
|
/Linux-v6.6/include/linux/can/ |
D | length.h | 264 #define can_cc_dlc2len(dlc) (min_t(u8, (dlc), CAN_MAX_DLEN)) argument 280 static inline void can_frame_set_cc_len(struct can_frame *cf, const u8 dlc, in can_frame_set_cc_len() argument 284 if (ctrlmode & CAN_CTRLMODE_CC_LEN8_DLC && dlc > CAN_MAX_DLEN) in can_frame_set_cc_len() 285 cf->len8_dlc = dlc; in can_frame_set_cc_len() 288 cf->len = can_cc_dlc2len(dlc); in can_frame_set_cc_len() 292 u8 can_fd_dlc2len(u8 dlc);
|
/Linux-v6.6/sound/soc/ |
D | soc-core.c | 257 static inline int snd_soc_dlc_component_is_empty(struct snd_soc_dai_link_component *dlc) in snd_soc_dlc_component_is_empty() argument 259 return !(dlc->dai_args || dlc->name || dlc->of_node); in snd_soc_dlc_component_is_empty() 262 static inline int snd_soc_dlc_component_is_invalid(struct snd_soc_dai_link_component *dlc) in snd_soc_dlc_component_is_invalid() argument 264 return (dlc->name && dlc->of_node); in snd_soc_dlc_component_is_invalid() 267 static inline int snd_soc_dlc_dai_is_empty(struct snd_soc_dai_link_component *dlc) in snd_soc_dlc_dai_is_empty() argument 269 return !(dlc->dai_args || dlc->dai_name); in snd_soc_dlc_dai_is_empty() 272 static int snd_soc_is_matching_dai(const struct snd_soc_dai_link_component *dlc, in snd_soc_is_matching_dai() argument 275 if (!dlc) in snd_soc_is_matching_dai() 278 if (dlc->dai_args) in snd_soc_is_matching_dai() 279 return snd_soc_is_match_dai_args(dai->driver->dai_args, dlc->dai_args); in snd_soc_is_matching_dai() [all …]
|
/Linux-v6.6/sound/soc/sof/ |
D | nocodec.c | 27 struct snd_soc_dai_link_component *dlc; in sof_nocodec_bes_setup() local 35 dlc = devm_kcalloc(dev, 2, 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() 48 links[i].platforms = &dlc[1]; in sof_nocodec_bes_setup()
|
/Linux-v6.6/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-v6.6/sound/soc/fsl/ |
D | imx-rpmsg.c | 55 struct snd_soc_dai_link_component *dlc; in imx_rpmsg_probe() local 65 dlc = devm_kzalloc(&pdev->dev, 3 * sizeof(*dlc), GFP_KERNEL); in imx_rpmsg_probe() 66 if (!dlc) in imx_rpmsg_probe() 79 data->dai.cpus = &dlc[0]; in imx_rpmsg_probe() 81 data->dai.platforms = &dlc[1]; in imx_rpmsg_probe() 83 data->dai.codecs = &dlc[2]; in imx_rpmsg_probe()
|
D | imx-hdmi.c | 103 struct snd_soc_dai_link_component *dlc; in imx_hdmi_probe() local 109 dlc = devm_kzalloc(&pdev->dev, 3 * sizeof(*dlc), GFP_KERNEL); in imx_hdmi_probe() 110 if (!dlc) in imx_hdmi_probe() 134 data->dai.cpus = &dlc[0]; in imx_hdmi_probe() 136 data->dai.platforms = &dlc[1]; in imx_hdmi_probe() 138 data->dai.codecs = &dlc[2]; in imx_hdmi_probe()
|
D | imx-audmix.c | 207 struct snd_soc_dai_link_component *dlc; in imx_audmix_probe() local 210 dlc = devm_kcalloc(&pdev->dev, 2, sizeof(*dlc), GFP_KERNEL); in imx_audmix_probe() 211 if (!dlc) in imx_audmix_probe() 249 priv->dai[i].platforms = &dlc[0]; in imx_audmix_probe() 276 priv->dai[num_dai + i].cpus = &dlc[1]; in imx_audmix_probe() 291 priv->dai_conf[i].dlc.of_node = args.np; in imx_audmix_probe()
|
/Linux-v6.6/sound/soc/qcom/ |
D | common.c | 25 struct snd_soc_dai_link_component *dlc; in qcom_snd_parse_of() local 76 dlc = devm_kzalloc(dev, 2 * sizeof(*dlc), GFP_KERNEL); in qcom_snd_parse_of() 77 if (!dlc) { in qcom_snd_parse_of() 82 link->cpus = &dlc[0]; in qcom_snd_parse_of() 83 link->platforms = &dlc[1]; in qcom_snd_parse_of()
|
/Linux-v6.6/sound/soc/generic/ |
D | simple-card.c | 32 struct snd_soc_dai_link_component *dlc) in asoc_simple_parse_platform() argument 50 dlc->of_node = args.np; in asoc_simple_parse_platform() 57 struct snd_soc_dai_link_component *dlc, in asoc_simple_parse_dai() argument 80 dlc->dai_name = snd_soc_dai_name_get(dai); in asoc_simple_parse_dai() 81 dlc->dai_args = snd_soc_copy_dai_args(dev, &args); in asoc_simple_parse_dai() 82 if (!dlc->dai_args) in asoc_simple_parse_dai() 107 ret = snd_soc_get_dlc(&args, dlc); in asoc_simple_parse_dai() 161 struct snd_soc_dai_link_component *dlc; in simple_parse_node() local 166 dlc = asoc_link_to_cpu(dai_link, 0); in simple_parse_node() 169 dlc = asoc_link_to_codec(dai_link, 0); in simple_parse_node() [all …]
|
D | audio-graph-card.c | 58 static bool soc_component_is_pcm(struct snd_soc_dai_link_component *dlc) in soc_component_is_pcm() argument 60 struct snd_soc_dai *dai = snd_soc_find_dai_with_mutex(dlc); in soc_component_is_pcm() 115 struct snd_soc_dai_link_component *dlc; in graph_parse_node() local 120 dlc = asoc_link_to_cpu(dai_link, 0); in graph_parse_node() 123 dlc = asoc_link_to_codec(dai_link, 0); in graph_parse_node() 129 ret = asoc_graph_parse_dai(dev, ep, dlc, cpu); in graph_parse_node() 137 ret = asoc_simple_parse_clk(dev, ep, dai, dlc); in graph_parse_node()
|
/Linux-v6.6/sound/soc/intel/boards/ |
D | sof_maxim_common.c | 38 .dlc = COMP_CODEC_CONF(MAX_98373_DEV0_NAME), 42 .dlc = COMP_CODEC_CONF(MAX_98373_DEV1_NAME), 177 .dlc = COMP_CODEC_CONF(MAX_98390_DEV0_NAME), 181 .dlc = COMP_CODEC_CONF(MAX_98390_DEV1_NAME), 185 .dlc = COMP_CODEC_CONF(MAX_98390_DEV2_NAME), 189 .dlc = COMP_CODEC_CONF(MAX_98390_DEV3_NAME),
|
D | sof_realtek_common.c | 40 .dlc = COMP_CODEC_CONF(RT1011_DEV0_NAME), 44 .dlc = COMP_CODEC_CONF(RT1011_DEV1_NAME), 170 .dlc = COMP_CODEC_CONF(RT1015P_DEV0_NAME), 174 .dlc = COMP_CODEC_CONF(RT1015P_DEV1_NAME), 329 .dlc = COMP_CODEC_CONF(RT1015_DEV0_NAME), 333 .dlc = COMP_CODEC_CONF(RT1015_DEV1_NAME),
|
/Linux-v6.6/drivers/net/can/spi/mcp251xfd/ |
D | mcp251xfd-tx.c | 39 u8 dlc; in mcp251xfd_tx_obj_from_skb() local 79 dlc = can_fd_len2dlc(cfd->len); in mcp251xfd_tx_obj_from_skb() 81 dlc = can_get_cc_dlc((struct can_frame *)cfd, in mcp251xfd_tx_obj_from_skb() 85 flags |= FIELD_PREP(MCP251XFD_OBJ_FLAGS_DLC_MASK, dlc); in mcp251xfd_tx_obj_from_skb()
|
D | mcp251xfd-rx.c | 114 u8 dlc; in mcp251xfd_hw_rx_obj_to_skb() local 130 dlc = FIELD_GET(MCP251XFD_OBJ_FLAGS_DLC_MASK, hw_rx_obj->flags); in mcp251xfd_hw_rx_obj_to_skb() 140 cfd->len = can_fd_dlc2len(dlc); in mcp251xfd_hw_rx_obj_to_skb() 145 can_frame_set_cc_len((struct can_frame *)cfd, dlc, in mcp251xfd_hw_rx_obj_to_skb()
|
/Linux-v6.6/drivers/net/can/usb/etas_es58x/ |
D | es581_4.h | 81 u8 dlc; member 111 u8 dlc; member 122 u8 dlc; member
|
D | es58x_fd.c | 41 __msg_len = can_cc_dlc2len(__msg.dlc); \ 140 u8 dlc; in es58x_fd_rx_can_msg() local 143 dlc = can_fd_len2dlc(rx_can_msg->len); in es58x_fd_rx_can_msg() 145 dlc = rx_can_msg->dlc; in es58x_fd_rx_can_msg() 148 can_id, rx_can_msg->flags, dlc); in es58x_fd_rx_can_msg() 368 tx_can_msg->dlc = can_get_cc_dlc(cf, priv->can.ctrlmode); in es58x_fd_tx_can_msg()
|
/Linux-v6.6/drivers/net/can/dev/ |
D | length.c | 15 u8 can_fd_dlc2len(u8 dlc) in can_fd_dlc2len() argument 17 return dlc2len[dlc & 0x0F]; in can_fd_dlc2len()
|
/Linux-v6.6/drivers/net/can/usb/ |
D | esd_usb.c | 143 u8 dlc; member 162 u8 dlc; member 312 msg->rx.dlc, state, ecc, in esd_usb_rx_event() 410 if (msg->rx.dlc & ESD_USB_FD) { in esd_usb_rx_can_msg() 424 if (msg->rx.dlc & ESD_USB_FD) { in esd_usb_rx_can_msg() 426 cfd->len = can_fd_dlc2len(msg->rx.dlc); in esd_usb_rx_can_msg() 428 if ((msg->rx.dlc & ESD_USB_NO_BRS) == 0) in esd_usb_rx_can_msg() 430 if (msg->rx.dlc & ESD_USB_ESI) in esd_usb_rx_can_msg() 433 can_frame_set_cc_len(cf, msg->rx.dlc & ~ESD_USB_RTR, priv->can.ctrlmode); in esd_usb_rx_can_msg() 435 if (msg->rx.dlc & ESD_USB_RTR) { in esd_usb_rx_can_msg() [all …]
|
/Linux-v6.6/drivers/net/can/ |
D | xilinx_can.c | 592 u32 id, dlc, data[2] = {0, 0}; in xcan_write_frame() local 624 dlc = can_fd_len2dlc(cf->len) << XCAN_DLCR_DLC_SHIFT; in xcan_write_frame() 627 dlc |= XCAN_DLCR_BRS_MASK; in xcan_write_frame() 628 dlc |= XCAN_DLCR_EDL_MASK; in xcan_write_frame() 643 priv->write_reg(priv, XCAN_FRAME_DLC_OFFSET(frame_offset), dlc); in xcan_write_frame() 786 u32 id_xcan, dlc, data[2] = {0, 0}; in xcan_rx() local 796 dlc = priv->read_reg(priv, XCAN_FRAME_DLC_OFFSET(frame_base)) >> in xcan_rx() 800 cf->len = can_cc_dlc2len(dlc); in xcan_rx() 856 u32 id_xcan, dlc, data[2] = {0, 0}, dwindex = 0, i, dw_offset; in xcanfd_rx() local 859 dlc = priv->read_reg(priv, XCAN_FRAME_DLC_OFFSET(frame_base)); in xcanfd_rx() [all …]
|
/Linux-v6.6/drivers/net/can/rcar/ |
D | rcar_can.c | 46 u8 dlc; /* Data Length Code - bits [0..3] */ member 611 writeb(cf->len, &priv->regs->mb[RCAR_CAN_TX_FIFO_MBX].dlc); in rcar_can_start_xmit() 644 u8 dlc; in rcar_can_rx_pkt() local 658 dlc = readb(&priv->regs->mb[RCAR_CAN_RX_FIFO_MBX].dlc); in rcar_can_rx_pkt() 659 cf->len = can_cc_dlc2len(dlc); in rcar_can_rx_pkt() 663 for (dlc = 0; dlc < cf->len; dlc++) in rcar_can_rx_pkt() 664 cf->data[dlc] = in rcar_can_rx_pkt() 665 readb(&priv->regs->mb[RCAR_CAN_RX_FIFO_MBX].data[dlc]); in rcar_can_rx_pkt()
|
/Linux-v6.6/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, sizeof(*dlc), GFP_KERNEL); in axg_card_add_tdm_loopback() 124 if (!dlc) in axg_card_add_tdm_loopback() 127 lb->cpus = dlc; in axg_card_add_tdm_loopback()
|
D | meson-card-utils.c | 77 struct snd_soc_dai_link_component *dlc) in meson_card_parse_dai() argument 81 if (!dlc || !node) in meson_card_parse_dai() 84 ret = snd_soc_of_get_dlc(node, NULL, dlc, 0); in meson_card_parse_dai() 260 of_node_put(aux->dlc.of_node); in meson_card_clean_references()
|
/Linux-v6.6/sound/soc/sunxi/ |
D | sun4i-codec.c | 1285 struct snd_soc_dai_link_component *dlc = devm_kzalloc(dev, in sun4i_codec_create_link() local 1286 3 * sizeof(*dlc), GFP_KERNEL); in sun4i_codec_create_link() 1287 if (!link || !dlc) in sun4i_codec_create_link() 1290 link->cpus = &dlc[0]; in sun4i_codec_create_link() 1291 link->codecs = &dlc[1]; in sun4i_codec_create_link() 1292 link->platforms = &dlc[2]; in sun4i_codec_create_link() 1415 .dlc = COMP_EMPTY(), 1427 aux_dev.dlc.of_node = of_parse_phandle(dev->of_node, in sun8i_a23_codec_create_card() 1430 if (!aux_dev.dlc.of_node) { in sun8i_a23_codec_create_card() 1466 aux_dev.dlc.of_node = of_parse_phandle(dev->of_node, in sun8i_h3_codec_create_card() [all …]
|