Home
last modified time | relevance | path

Searched +full:d +full:- +full:- +full:- +full:- +full:- +full:0 (Results 1 – 25 of 1352) sorted by relevance

12345678910>>...55

/kernel/linux/linux-5.10/net/bluetooth/rfcomm/
Dcore.c42 static int channel_mtu = -1;
56 static int rfcomm_queue_disc(struct rfcomm_dlc *d);
58 static int rfcomm_send_pn(struct rfcomm_session *s, int cr, struct rfcomm_dlc *d);
73 /* ---- RFCOMM frame parsing macros ---- */
74 #define __get_dlci(b) ((b & 0xfc) >> 2)
75 #define __get_type(b) ((b & 0xef))
77 #define __test_ea(b) ((b & 0x01))
78 #define __test_cr(b) (!!(b & 0x02))
79 #define __test_pf(b) (!!(b & 0x10))
81 #define __session_dir(s) ((s)->initiator ? 0x00 : 0x01)
[all …]
/kernel/linux/linux-6.6/net/bluetooth/rfcomm/
Dcore.c44 static int channel_mtu = -1;
58 static int rfcomm_queue_disc(struct rfcomm_dlc *d);
60 static int rfcomm_send_pn(struct rfcomm_session *s, int cr, struct rfcomm_dlc *d);
75 /* ---- RFCOMM frame parsing macros ---- */
76 #define __get_dlci(b) ((b & 0xfc) >> 2)
77 #define __get_type(b) ((b & 0xef))
79 #define __test_ea(b) ((b & 0x01))
80 #define __test_cr(b) (!!(b & 0x02))
81 #define __test_pf(b) (!!(b & 0x10))
83 #define __session_dir(s) ((s)->initiator ? 0x00 : 0x01)
[all …]
/kernel/linux/linux-6.6/drivers/media/usb/dvb-usb-v2/
Ddvb_usb_core.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 2004-6 Patrick Boettcher <patrick.boettcher@posteo.de>
10 #include <media/media-device.h>
15 "disable remote control polling (default: 0)");
20 "force all DVB USB devices to use a PID filter, if any (default: 0)");
22 static int dvb_usbv2_download_firmware(struct dvb_usb_device *d, in dvb_usbv2_download_firmware() argument
27 dev_dbg(&d->udev->dev, "%s:\n", __func__); in dvb_usbv2_download_firmware()
29 if (!d->props->download_firmware) { in dvb_usbv2_download_firmware()
30 ret = -EINVAL; in dvb_usbv2_download_firmware()
34 ret = request_firmware(&fw, name, &d->udev->dev); in dvb_usbv2_download_firmware()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb-v2/
Ddvb_usb_core.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 2004-6 Patrick Boettcher <patrick.boettcher@posteo.de>
10 #include <media/media-device.h>
15 "disable remote control polling (default: 0)");
20 "force all DVB USB devices to use a PID filter, if any (default: 0)");
22 static int dvb_usbv2_download_firmware(struct dvb_usb_device *d, in dvb_usbv2_download_firmware() argument
27 dev_dbg(&d->udev->dev, "%s:\n", __func__); in dvb_usbv2_download_firmware()
29 if (!d->props->download_firmware) { in dvb_usbv2_download_firmware()
30 ret = -EINVAL; in dvb_usbv2_download_firmware()
34 ret = request_firmware(&fw, name, &d->udev->dev); in dvb_usbv2_download_firmware()
[all …]
Drtl28xxu.c1 // SPDX-License-Identifier: GPL-2.0-or-later
17 static int rtl28xxu_ctrl_msg(struct dvb_usb_device *d, struct rtl28xxu_req *req) in rtl28xxu_ctrl_msg() argument
19 struct rtl28xxu_dev *dev = d->priv; in rtl28xxu_ctrl_msg()
24 mutex_lock(&d->usb_mutex); in rtl28xxu_ctrl_msg()
26 if (req->size > sizeof(dev->buf)) { in rtl28xxu_ctrl_msg()
27 dev_err(&d->intf->dev, "too large message %u\n", req->size); in rtl28xxu_ctrl_msg()
28 ret = -EINVAL; in rtl28xxu_ctrl_msg()
32 if (req->index & CMD_WR_FLAG) { in rtl28xxu_ctrl_msg()
34 memcpy(dev->buf, req->data, req->size); in rtl28xxu_ctrl_msg()
36 pipe = usb_sndctrlpipe(d->udev, 0); in rtl28xxu_ctrl_msg()
[all …]
/kernel/linux/linux-5.10/drivers/mtd/
Dmtdswap.c1 // SPDX-License-Identifier: GPL-2.0-only
11 * support and lock-less operation written by Adrian Hunter.
59 #define BLOCK_ERROR (UINT_MAX - 1)
60 #define BLOCK_MAX (UINT_MAX - 2)
62 #define EBLOCK_BAD (1 << 0)
80 rb)->erase_count)
82 rb)->erase_count)
135 #define MTDSWAP_MAGIC_CLEAN 0x2095
137 #define MTDSWAP_TYPE_CLEAN 0
153 * page from the current block and is then pre-empted by the GC
[all …]
/kernel/linux/linux-6.6/drivers/mtd/
Dmtdswap.c1 // SPDX-License-Identifier: GPL-2.0-only
11 * support and lock-less operation written by Adrian Hunter.
59 #define BLOCK_ERROR (UINT_MAX - 1)
60 #define BLOCK_MAX (UINT_MAX - 2)
62 #define EBLOCK_BAD (1 << 0)
80 rb)->erase_count)
82 rb)->erase_count)
135 #define MTDSWAP_MAGIC_CLEAN 0x2095
137 #define MTDSWAP_TYPE_CLEAN 0
153 * page from the current block and is then pre-empted by the GC
[all …]
/kernel/linux/linux-6.6/drivers/clk/ti/
Dadpll.c1 // SPDX-License-Identifier: GPL-2.0-only
5 #include <linux/clk-provider.h>
14 #define ADPLL_PLLSS_MMR_LOCK_OFFSET 0x00 /* Managed by MPPULL */
15 #define ADPLL_PLLSS_MMR_LOCK_ENABLED 0x1f125B64
16 #define ADPLL_PLLSS_MMR_UNLOCK_MAGIC 0x1eda4c3d
18 #define ADPLL_PWRCTRL_OFFSET 0x00
24 #define ADPLL_PWRCTRL_OFFMODE 0
26 #define ADPLL_CLKCTRL_OFFSET 0x04
40 #define ADPLL_CLKCTRL_TINITZ 0
42 #define ADPLL_TENABLE_OFFSET 0x08
[all …]
/kernel/linux/linux-5.10/drivers/sh/intc/
Dcore.c5 * Copyright (C) 2009 - 2012 Paul Mundt
12 * Copyright (C) 2003 Takashi Kusuda <kusuda-takashi@hitachi-ul.co.jp>
33 #include <linux/radix-tree.h>
44 * - this needs to be at least 2 for 5-bit priorities on 7780
46 static unsigned int default_prio_level = 2; /* 2 - 16 */
74 struct intc_desc_int *d, in intc_register_irq() argument
84 radix_tree_insert(&d->tree, enum_id, intc_irq_xlate_get(irq)); in intc_register_irq()
95 data[0] = intc_get_mask_handle(desc, d, enum_id, 0); in intc_register_irq()
96 data[1] = intc_get_prio_handle(desc, d, enum_id, 0); in intc_register_irq()
98 primary = 0; in intc_register_irq()
[all …]
/kernel/linux/linux-6.6/drivers/sh/intc/
Dcore.c5 * Copyright (C) 2009 - 2012 Paul Mundt
12 * Copyright (C) 2003 Takashi Kusuda <kusuda-takashi@hitachi-ul.co.jp>
33 #include <linux/radix-tree.h>
44 * - this needs to be at least 2 for 5-bit priorities on 7780
46 static unsigned int default_prio_level = 2; /* 2 - 16 */
74 struct intc_desc_int *d, in intc_register_irq() argument
84 radix_tree_insert(&d->tree, enum_id, intc_irq_xlate_get(irq)); in intc_register_irq()
95 data[0] = intc_get_mask_handle(desc, d, enum_id, 0); in intc_register_irq()
96 data[1] = intc_get_prio_handle(desc, d, enum_id, 0); in intc_register_irq()
98 primary = 0; in intc_register_irq()
[all …]
/kernel/linux/linux-5.10/drivers/base/regmap/
Dregmap-irq.c1 // SPDX-License-Identifier: GPL-2.0
52 return &data->chip->irqs[irq]; in irq_to_regmap_irq()
57 struct regmap_irq_chip_data *d = irq_data_get_irq_chip_data(data); in regmap_irq_lock() local
59 mutex_lock(&d->lock); in regmap_irq_lock()
62 static int regmap_irq_update_bits(struct regmap_irq_chip_data *d, in regmap_irq_update_bits() argument
66 if (d->chip->mask_writeonly) in regmap_irq_update_bits()
67 return regmap_write_bits(d->map, reg, mask, val); in regmap_irq_update_bits()
69 return regmap_update_bits(d->map, reg, mask, val); in regmap_irq_update_bits()
74 struct regmap_irq_chip_data *d = irq_data_get_irq_chip_data(data); in regmap_irq_sync_unlock() local
75 struct regmap *map = d->map; in regmap_irq_sync_unlock()
[all …]
/kernel/linux/linux-6.6/drivers/base/regmap/
Dregmap-irq.c1 // SPDX-License-Identifier: GPL-2.0
55 return &data->chip->irqs[irq]; in irq_to_regmap_irq()
60 struct regmap *map = data->map; in regmap_irq_can_bulk_read_status()
63 * While possible that a user-defined ->get_irq_reg() callback might in regmap_irq_can_bulk_read_status()
67 return data->irq_reg_stride == 1 && map->reg_stride == 1 && in regmap_irq_can_bulk_read_status()
68 data->get_irq_reg == regmap_irq_get_irq_reg_linear && in regmap_irq_can_bulk_read_status()
69 !map->use_single_read; in regmap_irq_can_bulk_read_status()
74 struct regmap_irq_chip_data *d = irq_data_get_irq_chip_data(data); in regmap_irq_lock() local
76 mutex_lock(&d->lock); in regmap_irq_lock()
81 struct regmap_irq_chip_data *d = irq_data_get_irq_chip_data(data); in regmap_irq_sync_unlock() local
[all …]
/kernel/linux/linux-5.10/drivers/clk/ti/
Dadpll.c14 #include <linux/clk-provider.h>
23 #define ADPLL_PLLSS_MMR_LOCK_OFFSET 0x00 /* Managed by MPPULL */
24 #define ADPLL_PLLSS_MMR_LOCK_ENABLED 0x1f125B64
25 #define ADPLL_PLLSS_MMR_UNLOCK_MAGIC 0x1eda4c3d
27 #define ADPLL_PWRCTRL_OFFSET 0x00
33 #define ADPLL_PWRCTRL_OFFMODE 0
35 #define ADPLL_CLKCTRL_OFFSET 0x04
49 #define ADPLL_CLKCTRL_TINITZ 0
51 #define ADPLL_TENABLE_OFFSET 0x08
52 #define ADPLL_TENABLEDIV_OFFSET 0x8c
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb/
Ddvb-usb-remote.c1 // SPDX-License-Identifier: GPL-2.0
2 /* dvb-usb-remote.c is part of the DVB USB library.
4 * Copyright (C) 2004-6 Patrick Boettcher (patrick.boettcher@posteo.de)
5 * see dvb-usb-init.c for copyright information.
7 …* This file contains functions for initializing the input-device and for handling remote-control-q…
9 #include "dvb-usb-common.h"
20 if (ke->flags & INPUT_KEYMAP_BY_INDEX) { in legacy_dvb_usb_get_keymap_index()
21 index = ke->index; in legacy_dvb_usb_get_keymap_index()
27 for (index = 0; index < keymap_size; index++) in legacy_dvb_usb_get_keymap_index()
33 for (index = 0; index < keymap_size; index++) { in legacy_dvb_usb_get_keymap_index()
[all …]
Ddvb-usb-init.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * DVB USB library - provides a generic interface for a DVB USB device driver.
5 * dvb-usb-init.c
7 * Copyright (C) 2004-6 Patrick Boettcher (patrick.boettcher@posteo.de)
9 * see Documentation/driver-api/media/drivers/dvb-usb.rst for more information
11 #include "dvb-usb-common.h"
16 …ng level (1=info,xfer=2,pll=4,ts=8,err=16,rc=32,fw=64,mem=128,uxfer=256 (or-able))." DVB_USB_DEBU…
20 MODULE_PARM_DESC(disable_rc_polling, "disable remote control polling (default: 0).");
24 …E_PARM_DESC(force_pid_filter_usage, "force all dvb-usb-devices to use a PID filter, if any (defaul…
26 static int dvb_usb_adapter_init(struct dvb_usb_device *d, short *adapter_nrs) in dvb_usb_adapter_init() argument
[all …]
/kernel/linux/linux-6.6/drivers/media/usb/dvb-usb/
Ddvb-usb-remote.c1 // SPDX-License-Identifier: GPL-2.0
2 /* dvb-usb-remote.c is part of the DVB USB library.
4 * Copyright (C) 2004-6 Patrick Boettcher (patrick.boettcher@posteo.de)
5 * see dvb-usb-init.c for copyright information.
7 …* This file contains functions for initializing the input-device and for handling remote-control-q…
9 #include "dvb-usb-common.h"
20 if (ke->flags & INPUT_KEYMAP_BY_INDEX) { in legacy_dvb_usb_get_keymap_index()
21 index = ke->index; in legacy_dvb_usb_get_keymap_index()
27 for (index = 0; index < keymap_size; index++) in legacy_dvb_usb_get_keymap_index()
33 for (index = 0; index < keymap_size; index++) { in legacy_dvb_usb_get_keymap_index()
[all …]
Ddvb-usb-init.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * DVB USB library - provides a generic interface for a DVB USB device driver.
5 * dvb-usb-init.c
7 * Copyright (C) 2004-6 Patrick Boettcher (patrick.boettcher@posteo.de)
9 * see Documentation/driver-api/media/drivers/dvb-usb.rst for more information
11 #include "dvb-usb-common.h"
16 …ng level (1=info,xfer=2,pll=4,ts=8,err=16,rc=32,fw=64,mem=128,uxfer=256 (or-able))." DVB_USB_DEBU…
20 MODULE_PARM_DESC(disable_rc_polling, "disable remote control polling (default: 0).");
24 …E_PARM_DESC(force_pid_filter_usage, "force all dvb-usb-devices to use a PID filter, if any (defaul…
26 static int dvb_usb_adapter_init(struct dvb_usb_device *d, short *adapter_nrs) in dvb_usb_adapter_init() argument
[all …]
/kernel/liteos_a/testsuites/unittest/net/socket/smoke/
Dnet_socket_test_012.cpp2 * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
3 * Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
45 struct sockaddr addr = {0}; in SocketNullTestInternal()
46 struct sockaddr *bad = reinterpret_cast<struct sockaddr *>(0xbad); in SocketNullTestInternal()
48 socklen_t zero = 0; in SocketNullTestInternal()
49 struct msghdr message = {0}; in SocketNullTestInternal()
50 void *badUserAddr = reinterpret_cast<void *>(0x3effffff); in SocketNullTestInternal()
56 LogPrintln("accept: %d, errno=%d", ret, errno); in SocketNullTestInternal()
57 ICUNIT_ASSERT_EQUAL(ret, -1, errno); in SocketNullTestInternal()
60 LogPrintln("accept: %d, errno=%d", ret, errno); in SocketNullTestInternal()
[all …]
/kernel/linux/linux-6.6/drivers/dma/lgm/
Dlgm-dma.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (c) 2016 - 2020 Intel Corporation.
10 #include <linux/dma-mapping.h>
23 #include "../virt-dma.h"
25 #define DRIVER_NAME "lgm-dma"
27 #define DMA_ID 0x0008
28 #define DMA_ID_REV GENMASK(7, 0)
33 #define DMA_VER32 0x32
34 #define DMA_VER31 0x31
35 #define DMA_VER22 0x0A
[all …]
/kernel/linux/linux-5.10/arch/arm64/crypto/
Dsha3-ce-core.S1 /* SPDX-License-Identifier: GPL-2.0 */
3 * sha3-ce-core.S - core SHA-3 transform using v8.2 Crypto Extensions
15 .irp b,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31
16 .set .Lv\b\().2d, \b
24 .inst 0xce000000 | .L\rd | (.L\rn << 5) | (.L\ra << 10) | (.L\rm << 16)
28 .inst 0xce608c00 | .L\rd | (.L\rn << 5) | (.L\rm << 16)
32 .inst 0xce200000 | .L\rd | (.L\rn << 5) | (.L\ra << 10) | (.L\rm << 16)
36 .inst 0xce800000 | .L\rd | (.L\rn << 5) | ((\imm6) << 10) | (.L\rm << 16)
46 ld1 { v0.1d- v3.1d}, [x0]
47 ld1 { v4.1d- v7.1d}, [x8], #32
[all …]
/kernel/linux/linux-6.6/arch/arm64/crypto/
Dsha3-ce-core.S1 /* SPDX-License-Identifier: GPL-2.0 */
3 * sha3-ce-core.S - core SHA-3 transform using v8.2 Crypto Extensions
15 .irp b,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31
16 .set .Lv\b\().2d, \b
24 .inst 0xce000000 | .L\rd | (.L\rn << 5) | (.L\ra << 10) | (.L\rm << 16)
28 .inst 0xce608c00 | .L\rd | (.L\rn << 5) | (.L\rm << 16)
32 .inst 0xce200000 | .L\rd | (.L\rn << 5) | (.L\ra << 10) | (.L\rm << 16)
36 .inst 0xce800000 | .L\rd | (.L\rn << 5) | ((\imm6) << 10) | (.L\rm << 16)
46 ld1 { v0.1d- v3.1d}, [x0]
47 ld1 { v4.1d- v7.1d}, [x8], #32
[all …]
/kernel/linux/linux-6.6/tools/lib/bpf/
Dbtf_dump.c1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
4 * BTF-to-C type converter.
26 static const size_t PREFIX_CNT = sizeof(PREFIXES) - 1;
30 return lvl >= PREFIX_CNT ? PREFIXES : &PREFIXES[PREFIX_CNT - lvl]; in pfx()
45 /* per-type auxiliary state */
53 /* whether unique non-duplicate name was already assigned */
88 /* per-type auxiliary state */
91 /* per-type optional cached unique name, must be freed, if present */
95 /* topo-sorted list of dependent type definitions */
128 return strcmp((void *)a, (void *)b) == 0; in str_equal_fn()
[all …]
/kernel/linux/linux-5.10/drivers/dma/
Dzx_dma.c1 // SPDX-License-Identifier: GPL-2.0-only
8 #include <linux/dma-mapping.h>
22 #include "virt-dma.h"
24 #define DRIVER_NAME "zx-dma"
26 #define DMA_MAX_SIZE (0x10000 - 512)
29 #define REG_ZX_SRC_ADDR 0x00
30 #define REG_ZX_DST_ADDR 0x04
31 #define REG_ZX_TX_X_COUNT 0x08
32 #define REG_ZX_TX_ZY_COUNT 0x0c
33 #define REG_ZX_SRC_ZY_STEP 0x10
[all …]
Dk3dma.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2013 - 2015 Linaro Ltd.
8 #include <linux/dma-mapping.h>
23 #include "virt-dma.h"
25 #define DRIVER_NAME "k3-dma"
26 #define DMA_MAX_SIZE 0x1ffc
27 #define DMA_CYCLIC_MAX_PERIOD 0x1000
30 #define INT_STAT 0x00
31 #define INT_TC1 0x04
32 #define INT_TC2 0x08
[all …]
/kernel/linux/linux-6.6/drivers/dma/
Dk3dma.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2013 - 2015 Linaro Ltd.
8 #include <linux/dma-mapping.h>
23 #include "virt-dma.h"
25 #define DRIVER_NAME "k3-dma"
26 #define DMA_MAX_SIZE 0x1ffc
27 #define DMA_CYCLIC_MAX_PERIOD 0x1000
30 #define INT_STAT 0x00
31 #define INT_TC1 0x04
32 #define INT_TC2 0x08
[all …]

12345678910>>...55