Home
last modified time | relevance | path

Searched full:mid (Results 1 – 25 of 557) sorted by relevance

12345678910>>...23

/kernel/linux/linux-5.10/drivers/tty/serial/8250/
D8250_mid.c26 /* Intel MID Specific registers */
53 static int pnw_setup(struct mid8250 *mid, struct uart_port *p) in pnw_setup() argument
59 mid->dma_index = 0; in pnw_setup()
62 mid->dma_index = 1; in pnw_setup()
65 mid->dma_index = 2; in pnw_setup()
71 mid->dma_dev = pci_get_slot(pdev->bus, in pnw_setup()
78 struct mid8250 *mid = p->private_data; in tng_handle_irq() local
85 chip = pci_get_drvdata(mid->dma_dev); in tng_handle_irq()
88 err = hsu_dma_get_status(chip, mid->dma_index * 2 + 1, &status); in tng_handle_irq()
93 ret |= hsu_dma_do_irq(chip, mid->dma_index * 2 + 1, status); in tng_handle_irq()
[all …]
/kernel/linux/linux-5.10/drivers/watchdog/
Dintel-mid_wdt.c3 * intel-mid_wdt: generic Intel MID SCU watchdog driver
20 #include <asm/intel-mid.h>
43 wdt_command(struct mid_wdt *mid, int sub, const void *in, size_t inlen, size_t size) in wdt_command() argument
45 struct intel_scu_ipc_dev *scu = mid->scu; in wdt_command()
53 struct mid_wdt *mid = watchdog_get_drvdata(wd); in wdt_start() local
69 ret = wdt_command(mid, SCU_WATCHDOG_START, &ipc_wd_start, in wdt_start()
72 dev_crit(mid->dev, "error starting watchdog: %d\n", ret); in wdt_start()
79 struct mid_wdt *mid = watchdog_get_drvdata(wd); in wdt_ping() local
82 ret = wdt_command(mid, SCU_WATCHDOG_KEEPALIVE, NULL, 0, 0); in wdt_ping()
84 dev_crit(mid->dev, "Error executing keepalive: %d\n", ret); in wdt_ping()
[all …]
/kernel/linux/linux-5.10/net/sctp/
Dstream_interleave.c63 __u32 mid; in sctp_chunk_assign_mid() local
75 mid = lchunk->chunk_hdr->flags & SCTP_DATA_LAST_FRAG ? in sctp_chunk_assign_mid()
79 mid = lchunk->chunk_hdr->flags & SCTP_DATA_LAST_FRAG ? in sctp_chunk_assign_mid()
83 hdr->mid = htonl(mid); in sctp_chunk_assign_mid()
108 __u32 mid; in sctp_validate_idata() local
119 mid = ntohl(chunk->subh.idata_hdr->mid); in sctp_validate_idata()
121 return !MID_lt(mid, sctp_mid_peek(stream, in, sid)); in sctp_validate_idata()
139 event->mid == cevent->mid && in sctp_intl_store_reasm()
148 MID_lt(cevent->mid, event->mid)) || in sctp_intl_store_reasm()
160 MID_lt(event->mid, cevent->mid))) { in sctp_intl_store_reasm()
[all …]
/kernel/linux/linux-5.10/arch/alpha/kernel/
Dcore_mcpcia.c91 unsigned long mid = MCPCIA_HOSE2MID(hose->index); in conf_read() local
99 addr, type1, mid)); in conf_read()
102 stat0 = *(vuip)MCPCIA_CAP_ERR(mid); in conf_read()
103 *(vuip)MCPCIA_CAP_ERR(mid) = stat0; in conf_read()
105 *(vuip)MCPCIA_CAP_ERR(mid); in conf_read()
106 DBG_CFG(("conf_read: MCPCIA_CAP_ERR(%d) was 0x%x\n", mid, stat0)); in conf_read()
112 mcheck_extra(cpu) = mid; in conf_read()
139 unsigned long mid = MCPCIA_HOSE2MID(hose->index); in conf_write() local
147 stat0 = *(vuip)MCPCIA_CAP_ERR(mid); in conf_write()
148 *(vuip)MCPCIA_CAP_ERR(mid) = stat0; mb(); in conf_write()
[all …]
/kernel/linux/linux-5.10/fs/cifs/
Dtransport.c48 cifs_wake_up_task(struct mid_q_entry *mid) in cifs_wake_up_task() argument
50 wake_up_process(mid->callback_data); in cifs_wake_up_task()
66 temp->mid = get_mid(smb_buffer); in AllocMidQEntry()
71 /* when mid allocated can be before when sent */ in AllocMidQEntry()
76 * The default is for the mid to be synchronous, so the in AllocMidQEntry()
115 cifs_server_dbg(VFS, "Invalid mid allocation time\n"); in _cifs_mid_q_entry_release()
151 trace_smb3_slow_rsp(smb_cmd, midEntry->mid, midEntry->pid, in _cifs_mid_q_entry_release()
154 pr_debug("slow rsp: cmd %d mid %llu", in _cifs_mid_q_entry_release()
155 midEntry->command, midEntry->mid); in _cifs_mid_q_entry_release()
181 cifs_delete_mid(struct mid_q_entry *mid) in cifs_delete_mid() argument
[all …]
Dtrace.h416 __u64 mid,
419 TP_ARGS(tid, sesid, cmd, mid, status, rc),
424 __field(__u64, mid)
432 __entry->mid = mid;
436 TP_printk("\tsid=0x%llx tid=0x%x cmd=%u mid=%llu status=0x%x rc=%d",
437 __entry->sesid, __entry->tid, __entry->cmd, __entry->mid,
446 __u64 mid, \
449 TP_ARGS(tid, sesid, cmd, mid, status, rc))
457 __u64 mid),
458 TP_ARGS(tid, sesid, cmd, mid),
[all …]
Dsmb2misc.c35 check_smb2_hdr(struct smb2_sync_hdr *shdr, __u64 mid) in check_smb2_hdr() argument
44 (mid == wire_mid)) { in check_smb2_hdr()
54 } else { /* bad signature or mid */ in check_smb2_hdr()
58 if (mid != wire_mid) in check_smb2_hdr()
60 mid, wire_mid); in check_smb2_hdr()
62 cifs_dbg(VFS, "Bad SMB detected. The Mid=%llu\n", wire_mid); in check_smb2_hdr()
144 __u64 mid; in smb2_check_message() local
176 mid = le64_to_cpu(shdr->MessageId); in smb2_check_message()
192 cifs_dbg(VFS, "SMB length greater than maximum, mid=%llu\n", in smb2_check_message()
193 mid); in smb2_check_message()
[all …]
Dsmb1ops.c28 struct mid_q_entry *mid) in send_nt_cancel() argument
40 rc = cifs_sign_smb(in_buf, server, &mid->sequence_number); in send_nt_cancel()
58 cifs_dbg(FYI, "issued NT_CANCEL for mid %u, rc = %d\n", in send_nt_cancel()
91 struct mid_q_entry *mid; in cifs_find_mid() local
94 list_for_each_entry(mid, &server->pending_mid_q, qhead) { in cifs_find_mid()
95 if (compare_mid(mid->mid, buf) && in cifs_find_mid()
96 mid->mid_state == MID_REQUEST_SUBMITTED && in cifs_find_mid()
97 le16_to_cpu(mid->command) == buf->Command) { in cifs_find_mid()
98 kref_get(&mid->refcount); in cifs_find_mid()
100 return mid; in cifs_find_mid()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/wil6210/
Dnetdev.c147 txdata->mid >= GET_MAX_VIFS(wil)) in wil6210_netdev_poll_tx()
150 vif = wil->vifs[txdata->mid]; in wil6210_netdev_poll_tx()
152 wil_dbg_txrx(wil, "Invalid MID %d\n", txdata->mid); in wil6210_netdev_poll_tx()
304 u8 mid; in wil_vif_alloc() local
306 mid = wil_vif_find_free_mid(wil); in wil_vif_alloc()
307 if (mid == U8_MAX) { in wil_vif_alloc()
318 if (mid == 0) { in wil_vif_alloc()
328 vif->mid = mid; in wil_vif_alloc()
416 if (wil->vifs[vif->mid]) { in wil_vif_add()
417 dev_err(&ndev->dev, "VIF with mid %d already in use\n", in wil_vif_add()
[all …]
Dtrace.h35 __field(u8, mid)
43 __entry->mid = wmi->mid;
51 "MID %d id 0x%04x len %d timestamp %d",
52 __entry->mid, __entry->command_id, __entry->buf_len,
155 __field(u8, mid)
166 __entry->mid = wil_rxdesc_mid(d);
174 TP_printk("index %d len %d mid %d cid (%%8) %d tid %d mcs %d seq 0x%03x"
176 __entry->mid, __entry->cid, __entry->tid, __entry->mcs,
187 __field(u8, mid)
198 __entry->mid = wil_rx_status_get_mid(msg);
[all …]
Dwmi.c633 static int __wmi_send(struct wil6210_priv *wil, u16 cmdid, u8 mid, in __wmi_send() argument
646 .mid = mid, in __wmi_send()
730 wil_dbg_wmi(wil, "sending %s (0x%04x) [%d] mid %d\n", in __wmi_send()
731 cmdid2name(cmdid), cmdid, len, mid); in __wmi_send()
755 int wmi_send(struct wil6210_priv *wil, u16 cmdid, u8 mid, void *buf, u16 len) in wmi_send() argument
760 rc = __wmi_send(wil, cmdid, mid, buf, len); in wmi_send()
774 wil_info(wil, "FW ver. %s(SW %d); MAC %pM; %d MID's\n", in wmi_evt_ready()
859 wil_dbg_wmi(wil, "qid %d mid %d cid %d\n", in wmi_evt_rx_mgmt()
860 data->info.qid, data->info.mid, data->info.cid); in wmi_evt_rx_mgmt()
939 if (vif->mid == 0) in wmi_evt_scan_complete()
[all …]
Dcfg80211.c448 rc = wmi_call(wil, WMI_NOTIFY_REQ_CMDID, vif->mid, &cmd, sizeof(cmd), in wil_cid_fill_sinfo()
454 wil_dbg_wmi(wil, "Link status for CID %d MID %d: {\n" in wil_cid_fill_sinfo()
460 cid, vif->mid, le16_to_cpu(reply.evt.bf_mcs), in wil_cid_fill_sinfo()
521 int cid = wil_find_cid(wil, vif->mid, mac); in wil_cfg80211_get_station()
523 wil_dbg_misc(wil, "get_station: %pM CID %d MID %d\n", mac, cid, in wil_cfg80211_get_station()
524 vif->mid); in wil_cfg80211_get_station()
534 * Find @idx-th active STA for specific MID for station dump.
536 int wil_find_cid_by_idx(struct wil6210_priv *wil, u8 mid, int idx) in wil_find_cid_by_idx() argument
543 if (wil->sta[i].mid != mid) in wil_find_cid_by_idx()
560 int cid = wil_find_cid_by_idx(wil, vif->mid, idx); in wil_cfg80211_dump_station()
[all …]
/kernel/linux/linux-5.10/arch/sparc/kernel/
Ddevices.c31 return "mid"; in cpu_mid_prop()
36 phandle *prom_node, int *mid) in check_cpu_node() argument
41 if (mid) { in check_cpu_node()
42 *mid = prom_getintdefault(nd, cpu_mid_prop(), 0); in check_cpu_node()
44 *mid &= 3; in check_cpu_node()
55 void *compare_arg, phandle *prom_node, int *mid) in __cpu_find_by() argument
64 prom_node, mid); in __cpu_find_by()
83 int cpu_find_by_instance(int instance, phandle *prom_node, int *mid) in cpu_find_by_instance() argument
86 prom_node, mid); in cpu_find_by_instance()
101 int cpu_find_by_mid(int mid, phandle *prom_node) in cpu_find_by_mid() argument
[all …]
Dsmp_32.c59 int mid; in smp_store_cpu_info() local
67 mid = cpu_get_hwmid(cpu_node); in smp_store_cpu_info()
69 if (mid < 0) { in smp_store_cpu_info()
70 printk(KERN_NOTICE "No MID found for CPU%d at node 0x%08x", id, cpu_node); in smp_store_cpu_info()
71 mid = 0; in smp_store_cpu_info()
73 cpu_data(id).mid = mid; in smp_store_cpu_info()
230 int instance, mid; in smp_setup_cpu_possible_map() local
233 while (!cpu_find_by_instance(instance, NULL, &mid)) { in smp_setup_cpu_possible_map()
234 if (mid < NR_CPUS) { in smp_setup_cpu_possible_map()
235 set_cpu_possible(mid, true); in smp_setup_cpu_possible_map()
[all …]
/kernel/linux/linux-5.10/drivers/hwmon/pmbus/
Ducd9000.c319 const struct i2c_device_id *mid, in ucd9000_probe_gpio() argument
324 switch (mid->driver_data) { in ucd9000_probe_gpio()
364 const struct i2c_device_id *mid, in ucd9000_probe_gpio() argument
432 const struct i2c_device_id *mid, in ucd9000_init_debugfs() argument
454 if (mid->driver_data == ucd9090 || mid->driver_data == ucd90160 || in ucd9000_init_debugfs()
455 mid->driver_data == ucd90320 || mid->driver_data == ucd90910) { in ucd9000_init_debugfs()
456 gpi_count = mid->driver_data == ucd90320 ? UCD90320_GPI_COUNT in ucd9000_init_debugfs()
483 const struct i2c_device_id *mid, in ucd9000_init_debugfs() argument
495 const struct i2c_device_id *mid; in ucd9000_probe() local
513 for (mid = ucd9000_id; mid->name[0]; mid++) { in ucd9000_probe()
[all …]
Ducd9200.c78 const struct i2c_device_id *mid; in ucd9200_probe() local
96 for (mid = ucd9200_id; mid->name[0]; mid++) { in ucd9200_probe()
97 if (!strncasecmp(mid->name, block_buffer, strlen(mid->name))) in ucd9200_probe()
100 if (!mid->name[0]) { in ucd9200_probe()
108 chip = mid->driver_data; in ucd9200_probe()
110 if (chip != ucd9200 && strcmp(client->name, mid->name) != 0) in ucd9200_probe()
113 client->name, mid->name); in ucd9200_probe()
191 if (mid->driver_data == ucd9240) in ucd9200_probe()
/kernel/linux/linux-5.10/arch/hexagon/lib/
Dchecksum.c88 int i, start, mid, end, mask; in do_csum() local
100 mid = len - start; in do_csum()
101 end = mid & 0xF; in do_csum()
102 mid = mid>>4; in do_csum()
103 sum0 = mid << 18; in do_csum()
128 if (mid) { in do_csum()
131 if (mid > 1) in do_csum()
132 for (i = 0; i < mid-1; i++) { in do_csum()
148 ptr4 = (unsigned int *) &ptr[start + (mid * 16) + (end & 8)]; in do_csum()
155 ptr2 = (unsigned short *) &ptr[start + (mid * 16) + (end & 12)]; in do_csum()
[all …]
/kernel/liteos_a/kernel/include/
Dlos_errno.h82 #define LOS_ERRNO_OS_FATAL(MID, ERRNO) \ argument
83 (LOS_ERRTYPE_FATAL | LOS_ERRNO_OS_ID | ((UINT32)(MID) << 8) | ((UINT32)(ERRNO)))
89 #define LOS_ERRNO_OS_ERROR(MID, ERRNO) \ argument
90 (LOS_ERRTYPE_ERROR | LOS_ERRNO_OS_ID | ((UINT32)(MID) << 8) | ((UINT32)(ERRNO)))
96 #define LOS_ERRNO_OS_WARN(MID, ERRNO) \ argument
97 (LOS_ERRTYPE_WARN | LOS_ERRNO_OS_ID | ((UINT32)(MID) << 8) | ((UINT32)(ERRNO)))
103 #define LOS_ERRNO_OS_NORMAL(MID, ERRNO) \ argument
104 (LOS_ERRTYPE_NORMAL | LOS_ERRNO_OS_ID | ((UINT32)(MID) << 8) | ((UINT32)(ERRNO)))
/kernel/linux/linux-5.10/fs/erofs/
Dnamei.c61 const int mid = head + (back - head) / 2; in find_target_dirent() local
62 const int nameoff = nameoff_from_disk(de[mid].nameoff, in find_target_dirent()
67 .end = mid >= ndirents - 1 ? in find_target_dirent()
69 data + nameoff_from_disk(de[mid + 1].nameoff, in find_target_dirent()
77 return de + mid; in find_target_dirent()
79 head = mid + 1; in find_target_dirent()
82 back = mid - 1; in find_target_dirent()
104 const int mid = head + (back - head) / 2; in find_target_block_classic() local
105 struct page *page = read_mapping_page(mapping, mid, NULL); in find_target_block_classic()
121 mid, EROFS_I(dir)->nid); in find_target_block_classic()
[all …]
/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_dir2_block.c296 * XXX should be the one closest to mid but mid is not yet computed.
371 int mid=0; /* midpoint for binary srch */ in xfs_dir2_block_addname() local
453 mid = (low + high) >> 1; in xfs_dir2_block_addname()
454 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_addname()
457 low = mid + 1; in xfs_dir2_block_addname()
459 high = mid - 1; in xfs_dir2_block_addname()
461 while (mid >= 0 && be32_to_cpu(blp[mid].hashval) >= args->hashval) { in xfs_dir2_block_addname()
462 mid--; in xfs_dir2_block_addname()
499 mid++; in xfs_dir2_block_addname()
500 if (mid) in xfs_dir2_block_addname()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_switchdev.c865 struct mlxsw_sp_mid *mid; in mlxsw_sp_bridge_mrouter_update_mdb() local
867 list_for_each_entry(mid, &bridge_device->mids_list, list) in mlxsw_sp_bridge_mrouter_update_mdb()
868 mlxsw_sp_smid_router_port_set(mlxsw_sp, mid->mid, add); in mlxsw_sp_bridge_mrouter_update_mdb()
1523 struct mlxsw_sp_mid *mid; in __mlxsw_sp_mc_get() local
1525 list_for_each_entry(mid, &bridge_device->mids_list, list) { in __mlxsw_sp_mc_get()
1526 if (ether_addr_equal(mid->addr, addr) && mid->fid == fid) in __mlxsw_sp_mc_get()
1527 return mid; in __mlxsw_sp_mc_get()
1575 struct mlxsw_sp_mid *mid, in mlxsw_sp_mc_write_mdb_entry() argument
1595 bitmap_copy(flood_bitmap, mid->ports_in_mid, num_of_ports); in mlxsw_sp_mc_write_mdb_entry()
1598 mid->mid = mid_idx; in mlxsw_sp_mc_write_mdb_entry()
[all …]
/kernel/uniproton/src/include/uapi/
Dprt_errno.h64 * @param mid [IN] 模块ID编号。
72 #define OS_ERRNO_BUILD_FATAL(mid, errno) (ERRTYPE_FATAL | ERRNO_OS_ID | ((U32)(mid) << 8) | (errno)) argument
81 * @param mid [IN] 模块ID编号。
89 #define OS_ERRNO_BUILD_ERROR(mid, errno) (ERRTYPE_ERROR | ERRNO_OS_ID | ((U32)(mid) << 8) | (errno)) argument
/kernel/uniproton/src/core/kernel/timer/
Dprt_timer_minor.c22 OS_SEC_L2_TEXT U32 PRT_TimerStart(U32 mid, TimerHandle tmrHandle) in PRT_TimerStart() argument
27 (void)mid; in PRT_TimerStart()
51 OS_SEC_L2_TEXT U32 PRT_TimerStop(U32 mid, TimerHandle tmrHandle) in PRT_TimerStop() argument
56 (void)mid; in PRT_TimerStop()
80 OS_SEC_L2_TEXT U32 PRT_TimerQuery(U32 mid, TimerHandle tmrHandle, U32 *expireTime) in PRT_TimerQuery() argument
84 (void)mid; in PRT_TimerQuery()
/kernel/linux/linux-5.10/Documentation/scsi/
Dscsi_mid_low_api.rst9 This document outlines the interface between the Linux SCSI mid level and
37 The SCSI mid level isolates an LLD from other layers such as the SCSI
49 Many LLDs are documented there (e.g. aic7xxx.txt). The SCSI mid-level is
90 a) directly invoking functions supplied by the mid level
92 supplied by the mid level. The mid level will then invoke these
96 by the mid level
98 Those functions in group a) are listed in a section entitled "Mid level
112 that are shared with the mid level and other layers.
131 with the SCSI mid level.
137 registered with sysfs at this point. The SCSI mid level first becomes
[all …]
/kernel/linux/linux-5.10/drivers/ide/
Dide-cd_verbose.c281 int lo = 0, mid, hi = ARRAY_SIZE(sense_data_texts); in ide_cd_log_error() local
290 mid = (lo + hi) / 2; in ide_cd_log_error()
291 if (sense_data_texts[mid].asc_ascq == key || in ide_cd_log_error()
292 sense_data_texts[mid].asc_ascq == (0xff0000|key)) { in ide_cd_log_error()
293 s = sense_data_texts[mid].text; in ide_cd_log_error()
295 } else if (sense_data_texts[mid].asc_ascq > key) in ide_cd_log_error()
296 hi = mid; in ide_cd_log_error()
298 lo = mid + 1; in ide_cd_log_error()
313 int lo = 0, mid, hi = ARRAY_SIZE(packet_command_texts); in ide_cd_log_error() local
317 mid = (lo + hi) / 2; in ide_cd_log_error()
[all …]

12345678910>>...23