Home
last modified time | relevance | path

Searched refs:prot (Results 1 – 25 of 44) sorted by relevance

12

/drivers/net/wireless/brcm80211/brcmfmac/
Ddhd_cdc.c108 struct brcmf_proto *prot = drvr->prot; in brcmf_proto_cdc_msg() local
109 int len = le32_to_cpu(prot->msg.len) + in brcmf_proto_cdc_msg()
123 (unsigned char *)&prot->msg, in brcmf_proto_cdc_msg()
130 struct brcmf_proto *prot = drvr->prot; in brcmf_proto_cdc_cmplt() local
136 (unsigned char *)&prot->msg, in brcmf_proto_cdc_cmplt()
140 } while (CDC_DCMD_ID(le32_to_cpu(prot->msg.flags)) != id); in brcmf_proto_cdc_cmplt()
149 struct brcmf_proto *prot = drvr->prot; in brcmf_proto_cdc_query_dcmd() local
150 struct brcmf_proto_cdc_dcmd *msg = &prot->msg; in brcmf_proto_cdc_query_dcmd()
174 flags = (++prot->reqid << CDC_DCMD_ID_SHIFT); in brcmf_proto_cdc_query_dcmd()
180 memcpy(prot->buf, buf, len); in brcmf_proto_cdc_query_dcmd()
[all …]
/drivers/net/wireless/bcmdhd/
Ddhd_cdc.c74 dhd_prot_t *prot = dhd->prot; in dhdcdc_msg() local
75 int len = ltoh32(prot->msg.len) + sizeof(cdc_ioctl_t); in dhdcdc_msg()
89 err = dhd_bus_txctl(dhd->bus, (uchar*)&prot->msg, len); in dhdcdc_msg()
100 dhd_prot_t *prot = dhd->prot; in dhdcdc_cmplt() local
106 ret = dhd_bus_rxctl(dhd->bus, (uchar*)&prot->msg, cdc_len); in dhdcdc_cmplt()
109 } while (CDC_IOC_ID(ltoh32(prot->msg.flags)) != id); in dhdcdc_cmplt()
118 dhd_prot_t *prot = dhd->prot; in dhdcdc_query_ioctl() local
119 cdc_ioctl_t *msg = &prot->msg; in dhdcdc_query_ioctl()
146 msg->flags = (++prot->reqid << CDCF_IOC_ID_SHIFT); in dhdcdc_query_ioctl()
154 memcpy(prot->buf, buf, len); in dhdcdc_query_ioctl()
[all …]
/drivers/net/ethernet/mellanox/mlx4/
Dmcg.c136 u32 prot; in new_steering_entry() local
181 prot = be32_to_cpu(mgm->members_count) >> 30; in new_steering_entry()
196 mgm->members_count = cpu_to_be32(members_count | (prot << 30)); in new_steering_entry()
357 u32 prot; in add_promisc_qp() local
396 prot = be32_to_cpu(mgm->members_count) >> 30; in add_promisc_qp()
417 mgm->members_count = cpu_to_be32(members_count | (prot << 30)); in add_promisc_qp()
564 u8 *gid, enum mlx4_protocol prot, in find_entry() argument
573 u8 op_mod = (prot == MLX4_PROT_ETH) ? in find_entry()
608 be32_to_cpu(mgm->members_count) >> 30 == prot) in find_entry()
620 int block_mcast_loopback, enum mlx4_protocol prot, in mlx4_qp_attach_common() argument
[all …]
Dresource_tracker.c75 enum mlx4_protocol prot; member
2483 u8 *gid, enum mlx4_protocol prot, in add_mcg_res() argument
2499 res->prot = prot; in add_mcg_res()
2510 u8 *gid, enum mlx4_protocol prot, in rem_mcg_res() argument
2518 if (!res || res->prot != prot || res->steer != steer) in rem_mcg_res()
2538 enum mlx4_protocol prot = (vhcr->in_modifier >> 28) & 0x7; in mlx4_QP_ATTACH_wrapper() local
2554 err = add_mcg_res(dev, slave, rqp, gid, prot, type); in mlx4_QP_ATTACH_wrapper()
2559 block_loopback, prot, type); in mlx4_QP_ATTACH_wrapper()
2563 err = rem_mcg_res(dev, slave, rqp, gid, prot, type); in mlx4_QP_ATTACH_wrapper()
2566 err = mlx4_qp_detach_common(dev, &qp, gid, prot, type); in mlx4_QP_ATTACH_wrapper()
[all …]
/drivers/net/wireless/bcmdhd/common/include/proto/
Dbcmip.h114 uint8 prot; /* Protocol */ member
161 #define IPV6_EXTHDR(prot) (((prot) == IPV6_EXTHDR_HOP) || \ argument
162 ((prot) == IPV6_EXTHDR_ROUTING) || \
163 ((prot) == IPV6_EXTHDR_FRAGMENT) || \
164 ((prot) == IPV6_EXTHDR_AUTH) || \
165 ((prot) == IPV6_EXTHDR_NONE) || \
166 ((prot) == IPV6_EXTHDR_DEST))
/drivers/gpu/drm/ttm/
Dttm_bo_util.c245 pgprot_t prot) in ttm_copy_io_ttm_page() argument
256 dst = kmap_atomic_prot(d, prot); in ttm_copy_io_ttm_page()
258 if (pgprot_val(prot) != pgprot_val(PAGE_KERNEL)) in ttm_copy_io_ttm_page()
259 dst = vmap(&d, 1, 0, prot); in ttm_copy_io_ttm_page()
271 if (pgprot_val(prot) != pgprot_val(PAGE_KERNEL)) in ttm_copy_io_ttm_page()
282 pgprot_t prot) in ttm_copy_ttm_io_page() argument
292 src = kmap_atomic_prot(s, prot); in ttm_copy_ttm_io_page()
294 if (pgprot_val(prot) != pgprot_val(PAGE_KERNEL)) in ttm_copy_ttm_io_page()
295 src = vmap(&s, 1, 0, prot); in ttm_copy_ttm_io_page()
307 if (pgprot_val(prot) != pgprot_val(PAGE_KERNEL)) in ttm_copy_ttm_io_page()
[all …]
/drivers/isdn/hisax/
Dl3dss1.c55 retval = p->prot.dss1.last_invoke_id + 1; /* try new id */ in new_invoke_id()
56 while ((i) && (p->prot.dss1.invoke_used[retval >> 3] == 0xFF)) { in new_invoke_id()
57 p->prot.dss1.last_invoke_id = (retval & 0xF8) + 8; in new_invoke_id()
61 while (p->prot.dss1.invoke_used[retval >> 3] & (1 << (retval & 7))) in new_invoke_id()
65 p->prot.dss1.last_invoke_id = retval; in new_invoke_id()
66 p->prot.dss1.invoke_used[retval >> 3] |= (1 << (retval & 7)); in new_invoke_id()
78 p->prot.dss1.invoke_used[id >> 3] &= ~(1 << (id & 7)); in free_invoke_id()
92 proc->prot.dss1.invoke_id = 0; in dss1_new_l3_process()
93 proc->prot.dss1.remote_operation = 0; in dss1_new_l3_process()
94 proc->prot.dss1.uus1_data[0] = '\0'; in dss1_new_l3_process()
[all …]
Dl3ni1.c54 retval = p->prot.ni1.last_invoke_id + 1; /* try new id */ in new_invoke_id()
55 while ((i) && (p->prot.ni1.invoke_used[retval >> 3] == 0xFF)) { in new_invoke_id()
56 p->prot.ni1.last_invoke_id = (retval & 0xF8) + 8; in new_invoke_id()
60 while (p->prot.ni1.invoke_used[retval >> 3] & (1 << (retval & 7))) in new_invoke_id()
64 p->prot.ni1.last_invoke_id = retval; in new_invoke_id()
65 p->prot.ni1.invoke_used[retval >> 3] |= (1 << (retval & 7)); in new_invoke_id()
77 p->prot.ni1.invoke_used[id >> 3] &= ~(1 << (id & 7)); in free_invoke_id()
91 proc->prot.ni1.invoke_id = 0; in ni1_new_l3_process()
92 proc->prot.ni1.remote_operation = 0; in ni1_new_l3_process()
93 proc->prot.ni1.uus1_data[0] = '\0'; in ni1_new_l3_process()
[all …]
/drivers/scsi/
Dsd_dif.c142 static void sd_dif_type1_set_tag(void *prot, void *tag_buf, unsigned int sectors) in sd_dif_type1_set_tag() argument
144 struct sd_dif_tuple *sdt = prot; in sd_dif_type1_set_tag()
154 static void sd_dif_type1_get_tag(void *prot, void *tag_buf, unsigned int sectors) in sd_dif_type1_get_tag() argument
156 struct sd_dif_tuple *sdt = prot; in sd_dif_type1_get_tag()
256 static void sd_dif_type3_set_tag(void *prot, void *tag_buf, unsigned int sectors) in sd_dif_type3_set_tag() argument
258 struct sd_dif_tuple *sdt = prot; in sd_dif_type3_set_tag()
269 static void sd_dif_type3_get_tag(void *prot, void *tag_buf, unsigned int sectors) in sd_dif_type3_get_tag() argument
271 struct sd_dif_tuple *sdt = prot; in sd_dif_type3_get_tag()
Dscsi.c261 void *buf, *prot; in __scsi_get_command() local
264 prot = cmd->prot_sdb; in __scsi_get_command()
269 cmd->prot_sdb = prot; in __scsi_get_command()
/drivers/staging/android/
Dashmem.c280 static inline unsigned long calc_vm_may_flags(unsigned long prot) in calc_vm_may_flags() argument
282 return _calc_vm_trans(prot, PROT_READ, VM_MAYREAD) | in calc_vm_may_flags()
283 _calc_vm_trans(prot, PROT_WRITE, VM_MAYWRITE) | in calc_vm_may_flags()
284 _calc_vm_trans(prot, PROT_EXEC, VM_MAYEXEC); in calc_vm_may_flags()
390 static int set_prot_mask(struct ashmem_area *asma, unsigned long prot) in set_prot_mask() argument
397 if (unlikely((asma->prot_mask & prot) != prot)) { in set_prot_mask()
403 if ((prot & PROT_READ) && (current->personality & READ_IMPLIES_EXEC)) in set_prot_mask()
404 prot |= PROT_EXEC; in set_prot_mask()
406 asma->prot_mask = prot; in set_prot_mask()
Dpersistent_ram.c328 pgprot_t prot; in persistent_ram_buffer_map() local
334 prot = pgprot_noncached(PAGE_KERNEL); in persistent_ram_buffer_map()
347 prz->vaddr = vmap(pages, page_count, VM_MAP, prot); in persistent_ram_buffer_map()
/drivers/iommu/
Domap-iommu.c534 static int iopgd_alloc_section(struct omap_iommu *obj, u32 da, u32 pa, u32 prot) in iopgd_alloc_section() argument
544 *iopgd = (pa & IOSECTION_MASK) | prot | IOPGD_SECTION; in iopgd_alloc_section()
549 static int iopgd_alloc_super(struct omap_iommu *obj, u32 da, u32 pa, u32 prot) in iopgd_alloc_super() argument
561 *(iopgd + i) = (pa & IOSUPER_MASK) | prot | IOPGD_SUPER; in iopgd_alloc_super()
566 static int iopte_alloc_page(struct omap_iommu *obj, u32 da, u32 pa, u32 prot) in iopte_alloc_page() argument
574 *iopte = (pa & IOPAGE_MASK) | prot | IOPTE_SMALL; in iopte_alloc_page()
583 static int iopte_alloc_large(struct omap_iommu *obj, u32 da, u32 pa, u32 prot) in iopte_alloc_large() argument
599 *(iopte + i) = (pa & IOLARGE_MASK) | prot | IOPTE_LARGE; in iopte_alloc_large()
608 u32 prot; in iopgtable_store_entry_core() local
633 prot = get_iopte_attr(e); in iopgtable_store_entry_core()
[all …]
Dintel-iommu.c302 static inline void dma_set_pte_prot(struct dma_pte *pte, unsigned long prot) in dma_set_pte_prot() argument
304 pte->val = (pte->val & ~3) | (prot & 3); in dma_set_pte_prot()
1786 unsigned long nr_pages, int prot) in __domain_mapping() argument
1797 if ((prot & (DMA_PTE_READ|DMA_PTE_WRITE)) == 0) in __domain_mapping()
1800 prot &= DMA_PTE_READ | DMA_PTE_WRITE | DMA_PTE_SNP; in __domain_mapping()
1806 pteval = ((phys_addr_t)phys_pfn << VTD_PAGE_SHIFT) | prot; in __domain_mapping()
1816 pteval = page_to_phys(sg_page(sg)) | prot; in __domain_mapping()
1893 int prot) in domain_sg_mapping() argument
1895 return __domain_mapping(domain, iov_pfn, sg, 0, nr_pages, prot); in domain_sg_mapping()
1900 int prot) in domain_pfn_mapping() argument
[all …]
Diommu.c213 phys_addr_t paddr, size_t size, int prot) in iommu_map() argument
272 ret = domain->ops->map(domain, iova, paddr, pgsize, prot); in iommu_map()
Dmsm_iommu.c358 phys_addr_t pa, size_t len, int prot) in msm_iommu_map() argument
373 sh = (prot & MSM_IOMMU_ATTR_SH) ? 1 : 0; in msm_iommu_map()
374 tex = msm_iommu_tex_class[prot & MSM_IOMMU_CP_MASK]; in msm_iommu_map()
Damd_iommu.c1245 int prot, in iommu_map_page() argument
1251 if (!(prot & IOMMU_PROT_MASK)) in iommu_map_page()
1269 if (prot & IOMMU_PROT_IR) in iommu_map_page()
1271 if (prot & IOMMU_PROT_IW) in iommu_map_page()
1360 ret = iommu_map_page(&dma_dom->domain, addr, addr, e->prot, in dma_ops_unity_map()
3197 int prot = 0; in amd_iommu_map() local
3204 prot |= IOMMU_PROT_IR; in amd_iommu_map()
3206 prot |= IOMMU_PROT_IW; in amd_iommu_map()
3209 ret = iommu_map_page(domain, iova, paddr, prot, page_size); in amd_iommu_map()
/drivers/ata/
Dsata_sil24.c41 __le16 prot; member
803 u8 prot = qc->tf.protocol; in sil24_qc_defer() local
824 int is_excl = (ata_is_atapi(prot) || in sil24_qc_defer()
859 u16 prot = 0; in sil24_qc_prep() local
862 prot |= PRB_PROT_NCQ; in sil24_qc_prep()
864 prot |= PRB_PROT_WRITE; in sil24_qc_prep()
866 prot |= PRB_PROT_READ; in sil24_qc_prep()
867 prb->prot = cpu_to_le16(prot); in sil24_qc_prep()
/drivers/s390/net/
Dqeth_core.h187 #define qeth_is_ipafunc_supported(c, prot, f) \ argument
188 ((prot == QETH_PROT_IPV6) ? \
190 #define qeth_is_ipafunc_enabled(c, prot, f) \ argument
191 ((prot == QETH_PROT_IPV6) ? \
933 int qeth_query_ipassists(struct qeth_card *, enum qeth_prot_versions prot);
Dqeth_l3_main.c312 enum qeth_prot_versions prot) in qeth_l3_get_addr_buffer() argument
321 addr->proto = prot; in qeth_l3_get_addr_buffer()
613 enum qeth_routing_types type, enum qeth_prot_versions prot) in qeth_l3_send_setrouting() argument
620 iob = qeth_get_ipacmd_buffer(card, IPA_CMD_SETRTG, prot); in qeth_l3_send_setrouting()
629 enum qeth_routing_types *type, enum qeth_prot_versions prot) in qeth_l3_correct_routing_type() argument
648 if (qeth_is_ipafunc_supported(card, prot, in qeth_l3_correct_routing_type()
1094 __u16 len, enum qeth_prot_versions prot) in qeth_l3_get_setassparms_cmd() argument
1100 iob = qeth_get_ipacmd_buffer(card, IPA_CMD_SETASSPARMS, prot); in qeth_l3_get_setassparms_cmd()
1909 __be16 prot; in qeth_l3_rebuild_skb() local
1915 prot = htons((hdr->hdr.l3.flags & QETH_HDR_IPV6)? ETH_P_IPV6 : in qeth_l3_rebuild_skb()
[all …]
/drivers/char/agp/
Dfrontend.c118 (pgprot_val(seg[i].prot) == pgprot_val(page_prot))) { in agp_find_seg_in_client()
156 static pgprot_t agp_convert_mmap_flags(int prot) in agp_convert_mmap_flags() argument
160 prot_bits = calc_vm_prot_bits(prot) | VM_SHARED; in agp_convert_mmap_flags()
182 seg[i].prot = agp_convert_mmap_flags(user_seg[i].prot); in agp_create_segment()
Dcompat_ioctl.c121 ksegment[seg].prot = usegment[seg].prot; in compat_agpioc_reserve_wrap()
Dcompat_ioctl.h61 compat_int_t prot; /* prot flags for mmap */ member
/drivers/infiniband/hw/cxgb4/
Dt4.h270 static inline pgprot_t t4_pgprot_wc(pgprot_t prot) in t4_pgprot_wc() argument
273 return pgprot_writecombine(prot); in t4_pgprot_wc()
275 return pgprot_noncached(prot); in t4_pgprot_wc()
/drivers/power/
Dintel_mid_battery.c148 u8 prot; /* CHRGPROT register value */ member
195 prop->prot = *p++; in pmic_scu_ipc_battery_property_get()

12