Home
last modified time | relevance | path

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

123

/linux/net/bluetooth/rfcomm/
H A Dtty.c62 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 …]
H A Dsock.c71 BT_DBG("dlc %p state %ld err %d", d, d->state, err); 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()
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 in rfcomm_sock_alloc()
[all...]
/linux/include/linux/can/
H A Dlength.h264 #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/sound/soc/
H A Dsoc-core.c258 static inline int snd_soc_dlc_component_is_empty(struct snd_soc_dai_link_component *dlc) in snd_soc_dlc_component_is_empty() argument
260 return !(dlc->dai_args || dlc->name || dlc->of_node); in snd_soc_dlc_component_is_empty()
263 static inline int snd_soc_dlc_component_is_invalid(struct snd_soc_dai_link_component *dlc) in snd_soc_dlc_component_is_invalid() argument
265 return (dlc->name && dlc->of_node); in snd_soc_dlc_component_is_invalid()
268 static inline int snd_soc_dlc_dai_is_empty(struct snd_soc_dai_link_component *dlc) in snd_soc_dlc_dai_is_empty() argument
270 return !(dlc->dai_args || dlc->dai_name); in snd_soc_dlc_dai_is_empty()
273 static int snd_soc_is_matching_dai(const struct snd_soc_dai_link_component *dlc, in snd_soc_is_matching_dai() argument
276 if (!dlc) in snd_soc_is_matching_dai()
279 if (dlc->dai_args) in snd_soc_is_matching_dai()
280 return snd_soc_is_match_dai_args(dai->driver->dai_args, dlc->dai_args); in snd_soc_is_matching_dai()
[all …]
H A Dsoc-utils.c265 int snd_soc_dlc_is_dummy(struct snd_soc_dai_link_component *dlc) in snd_soc_dlc_is_dummy() argument
267 if (dlc == &snd_soc_dummy_dlc) in snd_soc_dlc_is_dummy()
270 if ((dlc->name && strcmp(dlc->name, snd_soc_dummy_dlc.name) == 0) || in snd_soc_dlc_is_dummy()
271 (dlc->dai_name && strcmp(dlc->dai_name, snd_soc_dummy_dlc.dai_name) == 0)) in snd_soc_dlc_is_dummy()
/linux/sound/soc/intel/boards/
H A Dsof_maxim_common.c56 .dlc = COMP_CODEC_CONF(MAX_98373_DEV0_NAME),
60 .dlc = COMP_CODEC_CONF(MAX_98373_DEV1_NAME),
322 .dlc = COMP_CODEC_CONF(MAX_98390_DEV0_NAME),
326 .dlc = COMP_CODEC_CONF(MAX_98390_DEV1_NAME),
333 .dlc = COMP_CODEC_CONF(MAX_98390_DEV0_NAME),
337 .dlc = COMP_CODEC_CONF(MAX_98390_DEV1_NAME),
341 .dlc = COMP_CODEC_CONF(MAX_98390_DEV2_NAME),
345 .dlc = COMP_CODEC_CONF(MAX_98390_DEV3_NAME),
H A Dsof_realtek_common.c79 .dlc = COMP_CODEC_CONF(RT1011_DEV0_NAME),
83 .dlc = COMP_CODEC_CONF(RT1011_DEV1_NAME),
90 .dlc = COMP_CODEC_CONF(RT1011_DEV0_NAME),
94 .dlc = COMP_CODEC_CONF(RT1011_DEV1_NAME),
98 .dlc = COMP_CODEC_CONF(RT1011_DEV2_NAME),
102 .dlc = COMP_CODEC_CONF(RT1011_DEV3_NAME),
460 .dlc = COMP_CODEC_CONF(RT1015_DEV0_NAME),
464 .dlc = COMP_CODEC_CONF(RT1015_DEV1_NAME),
/linux/sound/soc/generic/
H A Dsimple-card.c41 struct snd_soc_dai_link_component *dlc) in simple_parse_platform() argument
59 dlc->of_node = args.np; in simple_parse_platform()
66 struct snd_soc_dai_link_component *dlc, in simple_parse_dai() argument
91 dlc->dai_name = snd_soc_dai_name_get(dai); in simple_parse_dai()
92 dlc->dai_args = snd_soc_copy_dai_args(dev, &args); in simple_parse_dai()
93 if (!dlc->dai_args) in simple_parse_dai()
118 ret = snd_soc_get_dlc(&args, dlc); in simple_parse_dai()
152 struct snd_soc_dai_link_component *dlc; in simple_parse_node() local
157 dlc = snd_soc_link_to_cpu(dai_link, 0); in simple_parse_node()
160 dlc = snd_soc_link_to_codec(dai_link, 0); in simple_parse_node()
[all …]
H A Daudio-graph-card2.c407 struct snd_soc_dai_link_component *dlc; in __graph_parse_node() local
412 dlc = snd_soc_link_to_cpu(dai_link, idx); in __graph_parse_node()
415 dlc = snd_soc_link_to_codec(dai_link, idx); in __graph_parse_node()
419 ret = graph_util_parse_dai(priv, ep, dlc, &is_single_links); in __graph_parse_node()
431 ret = simple_util_parse_clk(dev, ep, dai, dlc); in __graph_parse_node()
439 struct snd_soc_dai_link_component *cpus = dlc; in __graph_parse_node()
492 struct snd_soc_dai_link_component *cpus = dlc; in __graph_parse_node()
746 struct snd_soc_dai_link_component *dlc; in graph_link_init() local
806 for_each_link_cpus(dai_link, i, dlc) { in graph_link_init()
807 dlc->ext_fmt = graph_parse_bitframe(ep_cpu); in graph_link_init()
[all …]
H A Daudio-graph-card.c75 static bool soc_component_is_pcm(struct snd_soc_dai_link_component *dlc) in soc_component_is_pcm() argument
77 struct snd_soc_dai *dai = snd_soc_find_dai_with_mutex(dlc); in soc_component_is_pcm()
109 struct snd_soc_dai_link_component *dlc; in graph_parse_node() local
114 dlc = snd_soc_link_to_cpu(dai_link, 0); in graph_parse_node()
117 dlc = snd_soc_link_to_codec(dai_link, 0); in graph_parse_node()
121 ret = graph_util_parse_dai(priv, ep, dlc, cpu); in graph_parse_node()
129 ret = simple_util_parse_clk(dev, ep, dai, dlc); in graph_parse_node()
/linux/sound/soc/fsl/
H A Dimx-audmix.c191 struct snd_soc_dai_link_component *dlc; in imx_audmix_probe() local
194 dlc = devm_kcalloc(&pdev->dev, 2, sizeof(*dlc), GFP_KERNEL); in imx_audmix_probe()
195 if (!dlc) in imx_audmix_probe()
231 priv->dai[i].platforms = &dlc[0]; in imx_audmix_probe()
256 priv->dai[num_dai + i].cpus = &dlc[1]; in imx_audmix_probe()
273 priv->dai_conf[i].dlc.of_node = args.np; in imx_audmix_probe()
H A Dfsl-asoc-card.c626 struct snd_soc_dai_link_component *dlc; in fsl_asoc_card_probe() local
713 dlc = devm_kcalloc(&pdev->dev, 10, sizeof(*dlc), GFP_KERNEL); in fsl_asoc_card_probe()
714 if (!dlc) { in fsl_asoc_card_probe()
719 priv->dai_link[0].cpus = &dlc[0]; in fsl_asoc_card_probe()
721 priv->dai_link[0].codecs = &dlc[1]; in fsl_asoc_card_probe()
723 priv->dai_link[0].platforms = &dlc[3]; in fsl_asoc_card_probe()
726 priv->dai_link[1].cpus = &dlc[4]; in fsl_asoc_card_probe()
728 priv->dai_link[1].codecs = &dlc[5]; in fsl_asoc_card_probe()
730 priv->dai_link[1].platforms = &dlc[6]; in fsl_asoc_card_probe()
733 priv->dai_link[2].cpus = &dlc[7]; in fsl_asoc_card_probe()
[all …]
/linux/drivers/net/can/usb/etas_es58x/
H A Des581_4.h81 u8 dlc; member
111 u8 dlc; member
122 u8 dlc; member
H A Des58x_fd.c41 __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/drivers/net/can/spi/mcp251xfd/
H A Dmcp251xfd-tx.c39 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()
H A Dmcp251xfd-rx.c125 u8 dlc; in mcp251xfd_hw_rx_obj_to_skb() local
141 dlc = FIELD_GET(MCP251XFD_OBJ_FLAGS_DLC_MASK, hw_rx_obj->flags); in mcp251xfd_hw_rx_obj_to_skb()
151 cfd->len = can_fd_dlc2len(dlc); in mcp251xfd_hw_rx_obj_to_skb()
156 can_frame_set_cc_len((struct can_frame *)cfd, dlc, in mcp251xfd_hw_rx_obj_to_skb()
/linux/drivers/net/can/dev/
H A Dlength.c15 u8 can_fd_dlc2len(u8 dlc) in can_fd_dlc2len() argument
17 return dlc2len[dlc & 0x0F]; in can_fd_dlc2len()
/linux/drivers/net/can/rockchip/
H A Drockchip_canfd-rx.c59 u8 dlc; in rkcanfd_fifo_header_to_cfd_header() local
67 dlc = FIELD_GET(RKCANFD_REG_FD_FRAMEINFO_DATA_LENGTH, in rkcanfd_fifo_header_to_cfd_header()
72 cfd->len = can_fd_dlc2len(dlc); in rkcanfd_fifo_header_to_cfd_header()
82 cfd->len = can_cc_dlc2len(dlc); in rkcanfd_fifo_header_to_cfd_header()
/linux/drivers/net/can/usb/
H A Desd_usb.c144 u8 dlc; member
163 u8 dlc; member
317 msg->rx.dlc, state, ecc, in esd_usb_rx_event()
415 if (msg->rx.dlc & ESD_USB_FD) { in esd_usb_rx_can_msg()
429 if (msg->rx.dlc & ESD_USB_FD) { in esd_usb_rx_can_msg()
431 cfd->len = can_fd_dlc2len(msg->rx.dlc); in esd_usb_rx_can_msg()
433 if ((msg->rx.dlc & ESD_USB_NO_BRS) == 0) in esd_usb_rx_can_msg()
435 if (msg->rx.dlc & ESD_USB_ESI) in esd_usb_rx_can_msg()
438 can_frame_set_cc_len(cf, msg->rx.dlc & ~ESD_USB_RTR, priv->can.ctrlmode); in esd_usb_rx_can_msg()
440 if (msg->rx.dlc & ESD_USB_RTR) { in esd_usb_rx_can_msg()
[all …]
H A Df81604.c192 u8 dlc; member
386 cf->len = can_cc_dlc2len(frame->dlc & F81604_DLC_LEN_MASK); in f81604_process_rx_packet()
388 if (frame->dlc & F81604_DLC_EFF_BIT) { in f81604_process_rx_packet()
393 if (!(frame->dlc & F81604_DLC_RTR_BIT)) in f81604_process_rx_packet()
399 if (!(frame->dlc & F81604_DLC_RTR_BIT)) in f81604_process_rx_packet()
403 if (frame->dlc & F81604_DLC_RTR_BIT) in f81604_process_rx_packet()
970 frame->dlc = cf->len; in f81604_start_xmit()
973 frame->dlc |= F81604_DLC_RTR_BIT; in f81604_start_xmit()
980 frame->dlc |= F81604_DLC_EFF_BIT; in f81604_start_xmit()
/linux/sound/soc/meson/
H A Daxg-card.c109 struct snd_soc_dai_link_component *dlc; in axg_card_add_tdm_loopback() local
124 dlc = devm_kzalloc(card->dev, sizeof(*dlc), GFP_KERNEL); in axg_card_add_tdm_loopback()
125 if (!dlc) in axg_card_add_tdm_loopback()
128 lb->cpus = dlc; in axg_card_add_tdm_loopback()
H A Dmeson-card-utils.c77 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()
254 of_node_put(aux->dlc.of_node); in meson_card_clean_references()
/linux/sound/soc/sdw_utils/
H A Dsoc_sdw_utils.c1327 struct snd_soc_dai_link_component *dlc; in asoc_sdw_init_simple_dai_link() local
1330 dlc = devm_kcalloc(dev, 3, sizeof(*dlc), GFP_KERNEL); in asoc_sdw_init_simple_dai_link()
1331 if (!dlc || !name || !cpu_dai_name || !platform_comp_name || !codec_name || !codec_dai_name) in asoc_sdw_init_simple_dai_link()
1334 dlc[0].dai_name = cpu_dai_name; in asoc_sdw_init_simple_dai_link()
1335 dlc[1].name = platform_comp_name; in asoc_sdw_init_simple_dai_link()
1337 dlc[2].name = codec_name; in asoc_sdw_init_simple_dai_link()
1338 dlc[2].dai_name = codec_dai_name; in asoc_sdw_init_simple_dai_link()
1341 &dlc[0], 1, &dlc[1], 1, &dlc[2], 1, in asoc_sdw_init_simple_dai_link()
1531 soc_aux->dlc.name = codec_info->auxs[j].codec_name; in asoc_sdw_parse_sdw_endpoints()
/linux/net/can/j1939/
H A Dmain.c315 int ret, dlc; in j1939_send_one() local
332 dlc = skb->len; in j1939_send_one()
341 skb_put_zero(skb, 8 - dlc); in j1939_send_one()
351 cf->len = dlc; in j1939_send_one()
/linux/drivers/net/can/usb/kvaser_usb/
H A Dkvaser_usb_hydra.c261 u8 dlc; member
275 u8 dlc; member
285 u8 dlc; member
379 u8 dlc; member
1281 can_frame_set_cc_len((struct can_frame *)cf, cmd->rx_can.dlc, priv->can.ctrlmode); in kvaser_usb_hydra_rx_msg_std()
1305 u8 dlc; in kvaser_usb_hydra_rx_msg_ext() local
1316 dlc = (kcan_header & KVASER_USB_KCAN_DATA_DLC_MASK) >> in kvaser_usb_hydra_rx_msg_ext()
1354 cf->len = can_fd_dlc2len(dlc); in kvaser_usb_hydra_rx_msg_ext()
1360 can_frame_set_cc_len((struct can_frame *)cf, dlc, priv->can.ctrlmode); in kvaser_usb_hydra_rx_msg_ext()
1461 u8 dlc; in kvaser_usb_hydra_frame_to_cmd_ext() local
[all …]

123