Home
last modified time | relevance | path

Searched refs:mid (Results 1 – 25 of 148) sorted by relevance

123456

/linux/drivers/tty/serial/8250/
H A D8250_mid.c53 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()
76 static void pnw_exit(struct mid8250 *mid) in pnw_exit() argument
78 pci_dev_put(mid->dma_dev); in pnw_exit()
83 struct mid8250 *mid = p->private_data; in tng_handle_irq() local
90 chip = pci_get_drvdata(mid->dma_dev); in tng_handle_irq()
93 err = hsu_dma_get_status(chip, mid->dma_index * 2 + 1, &status); in tng_handle_irq()
[all …]
/linux/fs/smb/client/
H A Dtransport.c34 cifs_wake_up_task(struct TCP_Server_Info *server, struct mid_q_entry *mid) in cifs_wake_up_task() argument
36 if (mid->mid_state == MID_RESPONSE_RECEIVED) in cifs_wake_up_task()
37 mid->mid_state = MID_RESPONSE_READY; in cifs_wake_up_task()
38 wake_up_process(mid->callback_data); in cifs_wake_up_task()
101 trace_smb3_slow_rsp(smb_cmd, midEntry->mid, midEntry->pid, in __release_mid()
105 midEntry->command, midEntry->mid, in __release_mid()
118 delete_mid(struct TCP_Server_Info *server, struct mid_q_entry *mid) in delete_mid() argument
122 if (!mid->deleted_from_q) { in delete_mid()
123 list_del_init(&mid->qhead); in delete_mid()
124 mid->deleted_from_q = true; in delete_mid()
[all …]
H A Dsmb2misc.c26 check_smb2_hdr(struct smb2_hdr *shdr, __u64 mid) in check_smb2_hdr() argument
35 (mid == wire_mid)) { in check_smb2_hdr()
49 if (mid != wire_mid) in check_smb2_hdr()
51 mid, wire_mid); in check_smb2_hdr()
180 __u64 mid; in smb2_check_message() local
212 mid = le64_to_cpu(shdr->MessageId); in smb2_check_message()
213 if (check_smb2_hdr(shdr, mid)) in smb2_check_message()
244 mid); in smb2_check_message()
330 calc_len, len, command, mid); in smb2_check_message()
334 calc_len, len, command, mid); in smb2_check_message()
[all …]
H A Dcifsproto.h84 void delete_mid(struct TCP_Server_Info *server, struct mid_q_entry *mid);
88 struct mid_q_entry *mid);
90 struct mid_q_entry *mid);
108 int cifs_sync_mid_result(struct mid_q_entry *mid,
119 struct smb_rqst *rqst, struct mid_q_entry *mid, in send_cancel() argument
123 server->ops->send_cancel(ses, server, rqst, mid, xid) : 0; in send_cancel()
126 int wait_for_response(struct TCP_Server_Info *server, struct mid_q_entry *mid);
226 void dequeue_mid(struct TCP_Server_Info *server, struct mid_q_entry *mid,
338 struct mid_q_entry *mid);
475 static inline void smb_get_mid(struct mid_q_entry *mid) in smb_get_mid() argument
[all …]
/linux/arch/alpha/kernel/
H A 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 …]
/linux/rust/zerocopy/src/
H A Dbyte_slice.rs112 fn split_at(self, mid: usize) -> Result<(Self, Self), Self> { in split_at()
113 if mid <= self.deref().len() { in split_at()
120 unsafe { Ok(self.split_at_unchecked(mid)) } in split_at()
141 unsafe fn split_at_unchecked(self, mid: usize) -> (Self, Self); in split_at_unchecked()
214 unsafe fn split_at_unchecked(self, mid: usize) -> (Self, Self) { in split_at_unchecked()
219 (<[u8]>::get_unchecked(self, ..mid), <[u8]>::get_unchecked(self, mid..)) in split_at_unchecked()
245 unsafe fn split_at_unchecked(self, mid: usize) -> (Self, Self) { in split_at_unchecked()
254 let r_ptr = unsafe { l_ptr.add(mid) }; in split_at_unchecked()
256 let l_len = mid; in split_at_unchecked()
263 let r_len = unsafe { self.len().unchecked_sub(mid) }; in split_at_unchecked()
[all …]
/linux/net/sctp/
H A 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 …]
/linux/arch/sparc/kernel/
H A Ddevices.c36 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
103 return __cpu_find_by(cpu_mid_compare, (void *)mid, in cpu_find_by_mid()
H A 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()
71 mid = 0; in smp_store_cpu_info()
73 cpu_data(id).mid = mid; in smp_store_cpu_info()
225 int instance, mid; in smp_setup_cpu_possible_map() local
228 while (!cpu_find_by_instance(instance, NULL, &mid)) { in smp_setup_cpu_possible_map()
229 if (mid < NR_CPUS) { in smp_setup_cpu_possible_map()
230 set_cpu_possible(mid, true); in smp_setup_cpu_possible_map()
231 set_cpu_present(mid, true); in smp_setup_cpu_possible_map()
/linux/arch/hexagon/lib/
H A 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 …]
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_pgt.c113 mlxsw_sp_pgt_entry_create(struct mlxsw_sp_pgt *pgt, u16 mid, u16 smpe) in mlxsw_sp_pgt_entry_create() argument
123 ret = idr_replace(&pgt->pgt_idr, pgt_entry, mid); in mlxsw_sp_pgt_entry_create()
130 pgt_entry->index = mid; in mlxsw_sp_pgt_entry_create()
152 mlxsw_sp_pgt_entry_get(struct mlxsw_sp_pgt *pgt, u16 mid, u16 smpe) in mlxsw_sp_pgt_entry_get() argument
156 pgt_entry = idr_find(&pgt->pgt_idr, mid); in mlxsw_sp_pgt_entry_get()
160 return mlxsw_sp_pgt_entry_create(pgt, mid, smpe); in mlxsw_sp_pgt_entry_get()
163 static void mlxsw_sp_pgt_entry_put(struct mlxsw_sp_pgt *pgt, u16 mid) in mlxsw_sp_pgt_entry_put() argument
167 pgt_entry = idr_find(&pgt->pgt_idr, mid); in mlxsw_sp_pgt_entry_put()
245 static int mlxsw_sp_pgt_entry_port_add(struct mlxsw_sp *mlxsw_sp, u16 mid, in mlxsw_sp_pgt_entry_port_add() argument
254 pgt_entry = mlxsw_sp_pgt_entry_get(mlxsw_sp->pgt, mid, smpe); in mlxsw_sp_pgt_entry_port_add()
[all …]
/linux/drivers/net/wireless/ath/wil6210/
H A 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()
305 u8 mid; in wil_vif_alloc() local
307 mid = wil_vif_find_free_mid(wil); in wil_vif_alloc()
308 if (mid == U8_MAX) { in wil_vif_alloc()
319 if (mid == 0) { in wil_vif_alloc()
329 vif->mid = mid; in wil_vif_alloc()
417 if (wil->vifs[vif->mid]) { in wil_vif_add()
419 vif->mid); in wil_vif_add()
[all …]
H A Dtrace.h35 __field(u8, mid)
43 __entry->mid = wmi->mid;
52 __entry->mid, __entry->command_id, __entry->buf_len,
152 __field(u8, mid)
163 __entry->mid = wil_rxdesc_mid(d);
173 __entry->mid, __entry->cid, __entry->tid, __entry->mcs,
184 __field(u8, mid)
195 __entry->mid = wil_rx_status_get_mid(msg);
207 __entry->mid, __entry->cid, __entry->tid, __entry->mcs,
H A Drx_reorder.c87 int tid, cid, mid, mcast, retry; in wil_rx_reorder() local
94 wil->txrx_ops.get_reorder_params(wil, skb, &tid, &cid, &mid, &seq, in wil_rx_reorder()
99 mid, cid, tid, seq, mcast); in wil_rx_reorder()
101 vif = wil->vifs[mid]; in wil_rx_reorder()
103 wil_dbg_txrx(wil, "invalid VIF, mid %d\n", mid); in wil_rx_reorder()
234 cid, vif->mid, tid, seq, r->head_seq_num); in wil_rx_bar()
298 int wil_addba_rx_request(struct wil6210_priv *wil, u8 mid, u8 cid, u8 tid, in wil_addba_rx_request() argument
353 rc = wil->txrx_ops.wmi_addba_rx_resp(wil, mid, cid, tid, dialog_token, in wil_addba_rx_request()
394 rc = wmi_addba(wil, txdata->mid, ringid, agg_wsize, agg_timeout); in wil_addba_tx_request()
H A Dcfg80211.c451 rc = wmi_call(wil, WMI_NOTIFY_REQ_CMDID, vif->mid, &cmd, sizeof(cmd), in wil_cid_fill_sinfo()
465 cid, vif->mid, WIL_EXTENDED_MCS_CHECK(tx_mcs), in wil_cid_fill_sinfo()
544 int cid = wil_find_cid(wil, vif->mid, mac); in wil_cfg80211_get_station()
547 vif->mid); in wil_cfg80211_get_station()
559 int wil_find_cid_by_idx(struct wil6210_priv *wil, u8 mid, int idx) in wil_find_cid_by_idx() argument
566 if (wil->sta[i].mid != mid) in wil_find_cid_by_idx()
583 int cid = wil_find_cid_by_idx(wil, vif->mid, idx); in wil_cfg80211_dump_station()
590 vif->mid); in wil_cfg80211_dump_station()
732 addr[0] = (addr[0] ^ (1 << vif->mid)) | 0x2; /* locally administered */ in wil_cfg80211_add_iface()
743 vif->mid, type, wdev->address); in wil_cfg80211_add_iface()
[all …]
/linux/fs/erofs/
H A Dnamei.c60 const int mid = head + (back - head) / 2; in find_target_dirent() local
61 const int nameoff = nameoff_from_disk(de[mid].nameoff, in find_target_dirent()
66 .end = mid >= ndirents - 1 ? in find_target_dirent()
68 data + nameoff_from_disk(de[mid + 1].nameoff, in find_target_dirent()
76 return de + mid; in find_target_dirent()
78 head = mid + 1; in find_target_dirent()
81 back = mid - 1; in find_target_dirent()
98 const int mid = head + (back - head) / 2; in erofs_find_target_block() local
103 de = erofs_bread(&buf, erofs_pos(dir->i_sb, mid), true); in erofs_find_target_block()
115 mid, EROFS_I(dir)->nid); in erofs_find_target_block()
[all …]
/linux/drivers/hwmon/pmbus/
H A Dltc4286.c70 const struct i2c_device_id *mid; in ltc4286_probe() local
98 for (mid = ltc4286_id; mid->name[0]; mid++) { in ltc4286_probe()
99 if (!strncasecmp(mid->name, block_buffer, strlen(mid->name))) in ltc4286_probe()
102 if (!mid->name[0]) in ltc4286_probe()
H A Dadm1275.c549 const struct i2c_device_id *mid; in adm1275_probe() local
573 for (mid = adm1275_id; mid->name[0]; mid++) { in adm1275_probe()
574 if (!strncasecmp(mid->name, block_buffer, strlen(mid->name))) in adm1275_probe()
577 if (!mid->name[0]) { in adm1275_probe()
582 if (strcmp(client->name, mid->name) != 0) in adm1275_probe()
585 client->name, mid->name); in adm1275_probe()
587 if (mid->driver_data == adm1272 || mid->driver_data == adm1273 || in adm1275_probe()
588 mid->driver_data == adm1278 || mid->driver_data == adm1281 || in adm1275_probe()
589 mid->driver_data == adm1293 || mid->driver_data == adm1294 || in adm1275_probe()
590 mid->driver_data == bd12780 || mid->driver_data == bd12790 || in adm1275_probe()
[all …]
/linux/drivers/thermal/
H A Drockchip_thermal.c580 int high, low, mid; in rk_tsadcv2_temp_to_code() local
587 mid = (high + low) / 2; in rk_tsadcv2_temp_to_code()
594 if (temp == table->id[mid].temp) in rk_tsadcv2_temp_to_code()
595 return table->id[mid].code; in rk_tsadcv2_temp_to_code()
596 else if (temp < table->id[mid].temp) in rk_tsadcv2_temp_to_code()
597 high = mid - 1; in rk_tsadcv2_temp_to_code()
599 low = mid + 1; in rk_tsadcv2_temp_to_code()
600 mid = (low + high) / 2; in rk_tsadcv2_temp_to_code()
609 num = abs(table->id[mid + 1].code - table->id[mid].code); in rk_tsadcv2_temp_to_code()
610 num *= temp - table->id[mid].temp; in rk_tsadcv2_temp_to_code()
[all …]
/linux/fs/smb/server/
H A Dsmb2misc.c385 u64 mid = le64_to_cpu(hdr->MessageId); in smb2_check_sequence_number() local
404 if (mid + charge < mid) { in smb2_check_sequence_number()
406 mid, charge); in smb2_check_sequence_number()
413 if (mid < conn->seq_low || mid + charge > conn->seq_high) { in smb2_check_sequence_number()
416 mid, charge, conn->seq_low, conn->seq_high); in smb2_check_sequence_number()
422 for (i = mid; i < mid + charge; i++) { in smb2_check_sequence_number()
426 i, mid, charge); in smb2_check_sequence_number()
433 for (i = mid; i < mid + charge; i++) in smb2_check_sequence_number()
/linux/tools/perf/pmu-events/
H A Dempty-pmu-events.c5578 int cmp, mid = (low + high) / 2;
5580 decompress_event(pmu->entries[mid].offset, &pe);
5586 low = mid + 1;
5590 high = mid - 1;
5596 low = mid + 1;
5600 high = mid - 1;
5703 int cmp, mid = (low + high) / 2;
5705 decompress_metric(pmu->entries[mid].offset, &pm);
5711 low = mid + 1;
5715 high = mid
2950 int cmp, mid = (low + high) / 2; pmu_events_table__find_event_pmu() local
3076 int cmp, mid = (low + high) / 2; pmu_metrics_table__find_metric_pmu() local
3378 int mid = (low + high) / 2; describe_metricgroup() local
[all...]
/linux/drivers/scsi/bfa/
H A Dbfa_plog.h34 u8 mid; /* module id */ member
137 void bfa_plog_str(struct bfa_plog_s *plog, enum bfa_plog_mid mid,
139 void bfa_plog_intarr(struct bfa_plog_s *plog, enum bfa_plog_mid mid,
142 void bfa_plog_fchdr(struct bfa_plog_s *plog, enum bfa_plog_mid mid,
144 void bfa_plog_fchdr_and_pl(struct bfa_plog_s *plog, enum bfa_plog_mid mid,
/linux/fs/btrfs/
H A Dctree.c771 u32 mid; in btrfs_bin_search() local
773 mid = (low + high) / 2; in btrfs_bin_search()
774 offset = p + mid * item_size; in btrfs_bin_search()
790 low = mid + 1; in btrfs_bin_search()
792 high = mid; in btrfs_bin_search()
794 *slot = mid; in btrfs_bin_search()
922 struct extent_buffer *mid; in balance_level() local
933 mid = path->nodes[level]; in balance_level()
936 WARN_ON(btrfs_header_generation(mid) != trans->transid); in balance_level()
938 orig_ptr = btrfs_node_blockptr(mid, orig_slot); in balance_level()
[all …]
/linux/fs/befs/
H A Dbtree.c332 int first, last, mid; in befs_find_key() local
357 mid = 0; in befs_find_key()
359 mid = (last + first) / 2; in befs_find_key()
361 mid); in befs_find_key()
362 thiskey = befs_bt_get_key(sb, node, mid, &keylen); in befs_find_key()
368 __func__, thiskey, mid); in befs_find_key()
370 *value = fs64_to_cpu(sb, valarray[mid]); in befs_find_key()
374 last = mid - 1; in befs_find_key()
376 first = mid + 1; in befs_find_key()
381 *value = fs64_to_cpu(sb, valarray[mid + 1]); in befs_find_key()
[all …]
/linux/kernel/
H A Dkallsyms.c175 int low, mid, high; in kallsyms_lookup_names() local
183 mid = low + (high - low) / 2; in kallsyms_lookup_names()
184 seq = get_symbol_seq(mid); in kallsyms_lookup_names()
189 low = mid + 1; in kallsyms_lookup_names()
191 high = mid - 1; in kallsyms_lookup_names()
199 low = mid; in kallsyms_lookup_names()
211 high = mid; in kallsyms_lookup_names()
288 unsigned long i, low, high, mid; in get_symbol_pos() local
295 mid = low + (high - low) / 2; in get_symbol_pos()
296 if (kallsyms_sym_address(mid) <= addr) in get_symbol_pos()
[all …]

123456