Home
last modified time | relevance | path

Searched refs:dlc (Results 1 - 25 of 155) sorted by relevance

1234567

/kernel/linux/linux-5.10/net/bluetooth/rfcomm/
H A 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 in rfcomm_dev_destruct()
216 __rfcomm_dev_add(struct rfcomm_dev_req *req, struct rfcomm_dlc *dlc) __rfcomm_dev_add() argument
317 rfcomm_dev_add(struct rfcomm_dev_req *req, struct rfcomm_dlc *dlc) rfcomm_dev_add() argument
353 struct rfcomm_dlc *dlc = dev->dlc; rfcomm_room() local
393 struct rfcomm_dlc *dlc; __rfcomm_create_dev() local
602 rfcomm_dev_data_ready(struct rfcomm_dlc *dlc, struct sk_buff *skb) rfcomm_dev_data_ready() argument
624 rfcomm_dev_state_change(struct rfcomm_dlc *dlc, int err) rfcomm_dev_state_change() argument
641 rfcomm_dev_modem_status(struct rfcomm_dlc *dlc, u8 v24_sig) rfcomm_dev_modem_status() argument
710 struct rfcomm_dlc *dlc; rfcomm_tty_install() local
784 struct rfcomm_dlc *dlc = dev->dlc; rfcomm_tty_write() local
1072 struct rfcomm_dlc *dlc = dev->dlc; rfcomm_tty_tiocmset() local
[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()
292 rfcomm_pi(sk)->dlc in rfcomm_sock_alloc()
[all...]
/kernel/linux/linux-6.6/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 in rfcomm_dev_destruct()
217 __rfcomm_dev_add(struct rfcomm_dev_req *req, struct rfcomm_dlc *dlc) __rfcomm_dev_add() argument
318 rfcomm_dev_add(struct rfcomm_dev_req *req, struct rfcomm_dlc *dlc) rfcomm_dev_add() argument
354 struct rfcomm_dlc *dlc = dev->dlc; rfcomm_room() local
394 struct rfcomm_dlc *dlc; __rfcomm_create_dev() local
603 rfcomm_dev_data_ready(struct rfcomm_dlc *dlc, struct sk_buff *skb) rfcomm_dev_data_ready() argument
625 rfcomm_dev_state_change(struct rfcomm_dlc *dlc, int err) rfcomm_dev_state_change() argument
642 rfcomm_dev_modem_status(struct rfcomm_dlc *dlc, u8 v24_sig) rfcomm_dev_modem_status() argument
711 struct rfcomm_dlc *dlc; rfcomm_tty_install() local
786 struct rfcomm_dlc *dlc = dev->dlc; rfcomm_tty_write() local
1075 struct rfcomm_dlc *dlc = dev->dlc; rfcomm_tty_tiocmset() local
[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...]
/kernel/linux/linux-5.10/sound/soc/qcom/
H 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()
[all...]
/kernel/linux/linux-5.10/sound/soc/sof/
H A Dnocodec.c25 struct snd_soc_dai_link_component *dlc; in sof_nocodec_bes_setup() local
33 dlc = devm_kzalloc(dev, 3 * sizeof(*dlc), GFP_KERNEL); in sof_nocodec_bes_setup()
34 if (!dlc) in sof_nocodec_bes_setup()
42 links[i].cpus = &dlc[0]; in sof_nocodec_bes_setup()
43 links[i].codecs = &dlc[1]; in sof_nocodec_bes_setup()
44 links[i].platforms = &dlc[2]; in sof_nocodec_bes_setup()
/kernel/linux/linux-6.6/include/linux/can/
H A Dlength.h258 * can_cc_dlc2len(value) - convert a given data length code (dlc) of a
264 #define can_cc_dlc2len(dlc) (min_t(u8, (dlc), CAN_MAX_DLEN))
269 /* return len8_dlc as dlc value only if all conditions apply */ in can_get_cc_dlc()
275 /* return the payload length as dlc value */ in can_get_cc_dlc()
280 static inline void can_frame_set_cc_len(struct can_frame *cf, const u8 dlc, in can_frame_set_cc_len() argument
283 /* the caller already ensured that dlc is a value from 0 .. 15 */ in can_frame_set_cc_len()
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()
[all...]
/kernel/linux/linux-6.6/sound/soc/
H A Dsoc-core.c257 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 in snd_soc_dlc_dai_is_empty()
272 snd_soc_is_matching_dai(const struct snd_soc_dai_link_component *dlc, struct snd_soc_dai *dai) snd_soc_is_matching_dai() argument
825 snd_soc_is_matching_component( const struct snd_soc_dai_link_component *dlc, struct snd_soc_component *component) snd_soc_is_matching_component() argument
853 soc_find_component( const struct snd_soc_dai_link_component *dlc) soc_find_component() argument
886 snd_soc_find_dai( const struct snd_soc_dai_link_component *dlc) snd_soc_find_dai() argument
905 snd_soc_find_dai_with_mutex( const struct snd_soc_dai_link_component *dlc) snd_soc_find_dai_with_mutex() argument
922 struct snd_soc_dai_link_component *dlc; soc_dai_link_sanity_check() local
3344 struct snd_soc_dai_link_component dlc = { snd_soc_get_dai_id() local
3369 snd_soc_get_dlc(const struct of_phandle_args *args, struct snd_soc_dai_link_component *dlc) snd_soc_get_dlc() argument
3434 snd_soc_of_get_dlc(struct device_node *of_node, struct of_phandle_args *args, struct snd_soc_dai_link_component *dlc, int index) snd_soc_of_get_dlc() argument
3457 struct snd_soc_dai_link_component dlc; snd_soc_get_dai_name() local
3470 struct snd_soc_dai_link_component dlc; snd_soc_of_get_dai_name() local
[all...]
/kernel/linux/linux-6.6/sound/soc/sof/
H A Dnocodec.c27 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()
/kernel/linux/linux-6.6/sound/soc/fsl/
H A Dimx-hdmi.c103 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()
H A Dimx-rpmsg.c55 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()
/kernel/linux/linux-5.10/sound/soc/ti/
H A Drx51.c322 .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 in rx51_soc_probe()
[all...]
/kernel/linux/linux-6.6/sound/soc/ti/
H A Drx51.c322 .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 in rx51_soc_probe()
[all...]
/kernel/linux/linux-5.10/sound/soc/fsl/
H 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()
247 priv->dai[i].cpus = &dlc[0]; in imx_audmix_probe()
248 priv->dai[i].codecs = &dlc[1]; in imx_audmix_probe()
249 priv->dai[i].platforms = &dlc[2]; in imx_audmix_probe()
278 priv->dai[num_dai + i].cpus = &dlc[3]; in imx_audmix_probe()
279 priv->dai[num_dai + i].codecs = &dlc[4]; in imx_audmix_probe()
280 priv->dai[num_dai + i].platforms = &dlc[ in imx_audmix_probe()
[all...]
/kernel/linux/linux-6.6/sound/soc/qcom/
H A Dcommon.c25 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()
/kernel/linux/linux-6.6/sound/soc/generic/
H A Dsimple-card.c32 struct snd_soc_dai_link_component *dlc) in asoc_simple_parse_platform()
50 dlc->of_node = args.np; in asoc_simple_parse_platform()
57 struct snd_soc_dai_link_component *dlc, in asoc_simple_parse_dai()
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()
91 * Here, dlc->dai_name is pointer to CPU/Codec DAI name. in asoc_simple_parse_dai()
93 * dlc->dai_name is keeping unbinded CPU or Codec 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
31 asoc_simple_parse_platform(struct device_node *node, struct snd_soc_dai_link_component *dlc) asoc_simple_parse_platform() argument
55 asoc_simple_parse_dai(struct device *dev, struct device_node *node, struct snd_soc_dai_link_component *dlc, int *is_single_link) asoc_simple_parse_dai() argument
[all...]
/kernel/linux/linux-6.6/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.c114 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()
/kernel/linux/linux-5.10/sound/soc/meson/
H 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()
/kernel/linux/linux-6.6/sound/soc/intel/boards/
H A Dsof_realtek_common.c40 .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),
H A Dsof_maxim_common.c38 .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),
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/drivers/net/can/usb/etas_es58x/
H A Des581_4.h81 u8 dlc; member
111 u8 dlc; member
122 u8 dlc; member
/kernel/linux/linux-5.10/sound/soc/
H A Dsoc-core.c759 const struct snd_soc_dai_link_component *dlc, in snd_soc_is_matching_component()
764 if (!dlc) in snd_soc_is_matching_component()
769 if (dlc->of_node && component_of_node != dlc->of_node) in snd_soc_is_matching_component()
771 if (dlc->name && strcmp(component->name, dlc->name)) in snd_soc_is_matching_component()
778 const struct snd_soc_dai_link_component *dlc) in soc_find_component()
793 if (snd_soc_is_matching_component(dlc, component)) in soc_find_component()
802 * @dlc: name of the DAI or the DAI driver and optional component info to match
811 const struct snd_soc_dai_link_component *dlc) in snd_soc_find_dai()
758 snd_soc_is_matching_component( const struct snd_soc_dai_link_component *dlc, struct snd_soc_component *component) snd_soc_is_matching_component() argument
777 soc_find_component( const struct snd_soc_dai_link_component *dlc) soc_find_component() argument
810 snd_soc_find_dai( const struct snd_soc_dai_link_component *dlc) snd_soc_find_dai() argument
836 snd_soc_find_dai_with_mutex( const struct snd_soc_dai_link_component *dlc) snd_soc_find_dai_with_mutex() argument
2988 struct snd_soc_dai_link_component dlc; snd_soc_get_dai_id() local
[all...]
/kernel/linux/linux-5.10/drivers/net/can/
H A Dxilinx_can.c554 u32 id, dlc, data[2] = {0, 0}; in xcan_write_frame() local
586 dlc = can_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->can_dlc = get_can_dlc(dlc); in xcan_rx()
817 u32 id_xcan, dlc, data[2] = {0, 0}, dwindex = 0, i, dw_offset; in xcanfd_rx() local
820 dlc in xcanfd_rx()
[all...]

Completed in 20 milliseconds

1234567