Home
last modified time | relevance | path

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

12345

/linux-2.6.39/arch/alpha/kernel/
Dcore_mcpcia.c90 unsigned long mid = MCPCIA_HOSE2MID(hose->index); in conf_read() local
98 addr, type1, mid)); in conf_read()
101 stat0 = *(vuip)MCPCIA_CAP_ERR(mid); in conf_read()
102 *(vuip)MCPCIA_CAP_ERR(mid) = stat0; in conf_read()
104 *(vuip)MCPCIA_CAP_ERR(mid); in conf_read()
105 DBG_CFG(("conf_read: MCPCIA_CAP_ERR(%d) was 0x%x\n", mid, stat0)); in conf_read()
111 mcheck_extra(cpu) = mid; in conf_read()
138 unsigned long mid = MCPCIA_HOSE2MID(hose->index); in conf_write() local
146 stat0 = *(vuip)MCPCIA_CAP_ERR(mid); in conf_write()
147 *(vuip)MCPCIA_CAP_ERR(mid) = stat0; mb(); in conf_write()
[all …]
/linux-2.6.39/arch/sh/mm/
Dextable_64.c49 const struct exception_table_entry *mid; in search_extable() local
51 mid = check_exception_ranges(value); in search_extable()
52 if (mid) in search_extable()
53 return mid; in search_extable()
58 mid = (last - first) / 2 + first; in search_extable()
59 diff = mid->insn - value; in search_extable()
61 return mid; in search_extable()
63 first = mid+1; in search_extable()
65 last = mid-1; in search_extable()
/linux-2.6.39/drivers/ide/
Dide-cd_verbose.c278 int lo = 0, mid, hi = ARRAY_SIZE(sense_data_texts); in ide_cd_log_error() local
287 mid = (lo + hi) / 2; in ide_cd_log_error()
288 if (sense_data_texts[mid].asc_ascq == key || in ide_cd_log_error()
289 sense_data_texts[mid].asc_ascq == (0xff0000|key)) { in ide_cd_log_error()
290 s = sense_data_texts[mid].text; in ide_cd_log_error()
292 } else if (sense_data_texts[mid].asc_ascq > key) in ide_cd_log_error()
293 hi = mid; in ide_cd_log_error()
295 lo = mid + 1; in ide_cd_log_error()
310 int lo = 0, mid, hi = ARRAY_SIZE(packet_command_texts); in ide_cd_log_error() local
314 mid = (lo + hi) / 2; in ide_cd_log_error()
[all …]
/linux-2.6.39/arch/sparc/kernel/
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()
Dsmp_32.c56 int mid; in smp_store_cpu_info() local
64 mid = cpu_get_hwmid(cpu_node); in smp_store_cpu_info()
66 if (mid < 0) { in smp_store_cpu_info()
68 mid = 0; in smp_store_cpu_info()
70 cpu_data(id).mid = mid; in smp_store_cpu_info()
341 int instance, mid; in smp_setup_cpu_possible_map() local
344 while (!cpu_find_by_instance(instance, NULL, &mid)) { in smp_setup_cpu_possible_map()
345 if (mid < NR_CPUS) { in smp_setup_cpu_possible_map()
346 set_cpu_possible(mid, true); in smp_setup_cpu_possible_map()
347 set_cpu_present(mid, true); in smp_setup_cpu_possible_map()
/linux-2.6.39/drivers/dma/
Dintel_mid_dma.c127 struct middma_device *mid = to_middma_device(midc->chan.device); in dmac1_mask_periphral_intr() local
129 if (mid->pimr_mask) { in dmac1_mask_periphral_intr()
130 pimr = readl(mid->mask_reg + LNW_PERIPHRAL_MASK); in dmac1_mask_periphral_intr()
131 pimr |= mid->pimr_mask; in dmac1_mask_periphral_intr()
132 writel(pimr, mid->mask_reg + LNW_PERIPHRAL_MASK); in dmac1_mask_periphral_intr()
148 struct middma_device *mid = to_middma_device(midc->chan.device); in dmac1_unmask_periphral_intr() local
150 if (mid->pimr_mask) { in dmac1_unmask_periphral_intr()
151 pimr = readl(mid->mask_reg + LNW_PERIPHRAL_MASK); in dmac1_unmask_periphral_intr()
152 pimr &= ~mid->pimr_mask; in dmac1_unmask_periphral_intr()
153 writel(pimr, mid->mask_reg + LNW_PERIPHRAL_MASK); in dmac1_unmask_periphral_intr()
[all …]
/linux-2.6.39/lib/
Dextable.c77 const struct exception_table_entry *mid; in search_extable() local
79 mid = ((last - first) >> 1) + first; in search_extable()
84 if (mid->insn < value) in search_extable()
85 first = mid + 1; in search_extable()
86 else if (mid->insn > value) in search_extable()
87 last = mid - 1; in search_extable()
89 return mid; in search_extable()
/linux-2.6.39/arch/frv/mm/
Dextable.c24 const struct exception_table_entry __attribute__((aligned(8))) *mid; in search_one_table() local
27 mid = (last - first) / 2 + first; in search_one_table()
28 diff = mid->insn - value; in search_one_table()
30 return mid->fixup; in search_one_table()
32 first = mid + 1; in search_one_table()
34 last = mid - 1; in search_one_table()
/linux-2.6.39/fs/cifs/
Dtransport.c40 wake_up_task(struct mid_q_entry *mid) in wake_up_task() argument
42 wake_up_process(mid->callback_data); in wake_up_task()
60 temp->mid = smb_buffer->Mid; /* always LE */ in AllocMidQEntry()
101 midEntry->command, midEntry->mid); in DeleteMidQEntry()
113 delete_mid(struct mid_q_entry *mid) in delete_mid() argument
116 list_del(&mid->qhead); in delete_mid()
119 DeleteMidQEntry(mid); in delete_mid()
356 struct mid_q_entry *mid; in cifs_call_async() local
367 mid = AllocMidQEntry(in_buf, server); in cifs_call_async()
368 if (mid == NULL) { in cifs_call_async()
[all …]
Dmisc.c238 __u16 mid = 0; in GetNextMid() local
263 if (mid_entry->mid == server->CurrentMid && in GetNextMid()
285 mid = server->CurrentMid; in GetNextMid()
291 return mid; in GetNextMid()
396 check_smb_hdr(struct smb_hdr *smb, __u16 mid) in check_smb_hdr() argument
406 if (mid != smb->Mid) { in check_smb_hdr()
408 smb->Mid, mid); in check_smb_hdr()
425 checkSMB(struct smb_hdr *smb, __u16 mid, unsigned int length) in checkSMB() argument
465 if (check_smb_hdr(smb, mid)) in checkSMB()
/linux-2.6.39/arch/x86/xen/
Dp2m.c235 static void p2m_mid_init(unsigned long **mid) in p2m_mid_init() argument
240 mid[i] = p2m_missing; in p2m_mid_init()
243 static void p2m_mid_mfn_init(unsigned long *mid) in p2m_mid_mfn_init() argument
248 mid[i] = virt_to_mfn(p2m_missing); in p2m_mid_mfn_init()
291 unsigned long **mid; in xen_build_mfn_list_list() local
294 mid = p2m_top[topidx]; in xen_build_mfn_list_list()
301 if (mid == p2m_mid_missing) { in xen_build_mfn_list_list()
323 mid_mfn_p[mididx] = virt_to_mfn(mid[mididx]); in xen_build_mfn_list_list()
367 unsigned long **mid = extend_brk(PAGE_SIZE, PAGE_SIZE); in xen_build_dynamic_phys_to_machine() local
368 p2m_mid_init(mid); in xen_build_dynamic_phys_to_machine()
[all …]
/linux-2.6.39/fs/xfs/
Dxfs_dir2_block.c88 int mid=0; /* midpoint for binary srch */ in xfs_dir2_block_addname() local
301 mid = (low + high) >> 1; in xfs_dir2_block_addname()
302 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_addname()
305 low = mid + 1; in xfs_dir2_block_addname()
307 high = mid - 1; in xfs_dir2_block_addname()
309 while (mid >= 0 && be32_to_cpu(blp[mid].hashval) >= args->hashval) { in xfs_dir2_block_addname()
310 mid--; in xfs_dir2_block_addname()
344 mid++; in xfs_dir2_block_addname()
345 if (mid) in xfs_dir2_block_addname()
346 memmove(blp, &blp[1], mid * sizeof(*blp)); in xfs_dir2_block_addname()
[all …]
/linux-2.6.39/arch/ia64/mm/
Dextable.c87 const struct exception_table_entry *mid; in search_extable() local
92 mid = &first[(last - first)/2]; in search_extable()
93 mid_ip = (u64) &mid->addr + mid->addr; in search_extable()
96 return mid; in search_extable()
98 first = mid + 1; in search_extable()
100 last = mid - 1; in search_extable()
/linux-2.6.39/arch/alpha/mm/
Dextable.c78 const struct exception_table_entry *mid; in search_extable() local
81 mid = (last - first) / 2 + first; in search_extable()
82 mid_value = ex_to_addr(mid); in search_extable()
84 return mid; in search_extable()
86 first = mid+1; in search_extable()
88 last = mid-1; in search_extable()
/linux-2.6.39/drivers/media/video/
Dv4l2-int-device.c122 const struct v4l2_int_ioctl_desc *mid; in find_ioctl() local
124 mid = (last - first) / 2 + first; in find_ioctl()
126 if (mid->num < cmd) in find_ioctl()
127 first = mid + 1; in find_ioctl()
128 else if (mid->num > cmd) in find_ioctl()
129 last = mid - 1; in find_ioctl()
131 return mid->func; in find_ioctl()
/linux-2.6.39/drivers/scsi/bfa/
Dbfa_plog.h41 u8 mid; /* module id */ member
144 void bfa_plog_str(struct bfa_plog_s *plog, enum bfa_plog_mid mid,
146 void bfa_plog_intarr(struct bfa_plog_s *plog, enum bfa_plog_mid mid,
149 void bfa_plog_fchdr(struct bfa_plog_s *plog, enum bfa_plog_mid mid,
151 void bfa_plog_fchdr_and_pl(struct bfa_plog_s *plog, enum bfa_plog_mid mid,
/linux-2.6.39/drivers/isdn/hardware/eicon/
Dcapidtmf.c252 long d, e, q1, q2, lo, mid, hi; in capidtmf_goertzel_result() local
269 mid = k >> 16; in capidtmf_goertzel_result()
271 mid += k & 0xffff; in capidtmf_goertzel_result()
274 mid += k & 0xffff; in capidtmf_goertzel_result()
283 mid = -((long)(k >> 16)); in capidtmf_goertzel_result()
285 mid -= k & 0xffff; in capidtmf_goertzel_result()
288 mid -= k & 0xffff; in capidtmf_goertzel_result()
295 mid = -mid; in capidtmf_goertzel_result()
301 mid += k >> 16; in capidtmf_goertzel_result()
303 mid += (k & 0xffff) << 1; in capidtmf_goertzel_result()
[all …]
/linux-2.6.39/fs/btrfs/
Dctree.c751 int mid; in generic_bin_search() local
763 mid = (low + high) / 2; in generic_bin_search()
764 offset = p + mid * item_size; in generic_bin_search()
795 low = mid + 1; in generic_bin_search()
797 high = mid; in generic_bin_search()
799 *slot = mid; in generic_bin_search()
886 struct extent_buffer *mid; in balance_level() local
898 mid = path->nodes[level]; in balance_level()
901 WARN_ON(btrfs_header_generation(mid) != trans->transid); in balance_level()
903 orig_ptr = btrfs_node_blockptr(mid, orig_slot); in balance_level()
[all …]
/linux-2.6.39/fs/befs/
Dbtree.c339 int first, last, mid; in befs_find_key() local
366 mid = 0; in befs_find_key()
368 mid = (last + first) / 2; in befs_find_key()
370 mid); in befs_find_key()
371 thiskey = befs_bt_get_key(sb, node, mid, &keylen); in befs_find_key()
377 thiskey, mid); in befs_find_key()
379 *value = fs64_to_cpu(sb, valarray[mid]); in befs_find_key()
383 last = mid - 1; in befs_find_key()
385 first = mid + 1; in befs_find_key()
388 *value = fs64_to_cpu(sb, valarray[mid + 1]); in befs_find_key()
[all …]
/linux-2.6.39/kernel/
Dgroups.c145 unsigned int mid = (left+right)/2; in groups_search() local
146 if (grp > GROUP_AT(group_info, mid)) in groups_search()
147 left = mid + 1; in groups_search()
148 else if (grp < GROUP_AT(group_info, mid)) in groups_search()
149 right = mid; in groups_search()
/linux-2.6.39/net/tipc/
Dname_table.c194 int mid; in nameseq_find_subseq() local
197 mid = (low + high) / 2; in nameseq_find_subseq()
198 if (instance < sseqs[mid].lower) in nameseq_find_subseq()
199 high = mid - 1; in nameseq_find_subseq()
200 else if (instance > sseqs[mid].upper) in nameseq_find_subseq()
201 low = mid + 1; in nameseq_find_subseq()
203 return &sseqs[mid]; in nameseq_find_subseq()
223 int mid; in nameseq_locate_subseq() local
226 mid = (low + high) / 2; in nameseq_locate_subseq()
227 if (instance < sseqs[mid].lower) in nameseq_locate_subseq()
[all …]
/linux-2.6.39/arch/arm/mach-msm/
Diommu_dev.c331 int mid = c->mids[i]; in msm_iommu_ctx_probe() local
332 if (mid == -1) in msm_iommu_ctx_probe()
335 SET_M2VCBR_N(drvdata->base, mid, 0); in msm_iommu_ctx_probe()
339 SET_VMID(drvdata->base, mid, 0); in msm_iommu_ctx_probe()
342 SET_CBNDX(drvdata->base, mid, c->num); in msm_iommu_ctx_probe()
351 SET_NSCFG(drvdata->base, mid, 3); in msm_iommu_ctx_probe()
/linux-2.6.39/fs/ubifs/
Dtnc_misc.c139 int beg = 0, end = znode->child_cnt, uninitialized_var(mid); in ubifs_search_zbranch()
146 mid = (beg + end) >> 1; in ubifs_search_zbranch()
147 cmp = keys_cmp(c, key, &zbr[mid].key); in ubifs_search_zbranch()
149 beg = mid + 1; in ubifs_search_zbranch()
151 end = mid; in ubifs_search_zbranch()
153 *n = mid; in ubifs_search_zbranch()
/linux-2.6.39/drivers/md/
Dlinear.c31 int lo, mid, hi; in which_dev() local
44 mid = (hi + lo) / 2; in which_dev()
45 if (sector < conf->disks[mid].end_sector) in which_dev()
46 hi = mid; in which_dev()
48 lo = mid + 1; in which_dev()
/linux-2.6.39/include/scsi/
Dscsi_tgt_if.h63 aligned_u64 mid; member
94 aligned_u64 mid; member

12345