Home
last modified time | relevance | path

Searched refs:shp (Results 1 – 16 of 16) sorted by relevance

/linux-4.4.14/ipc/
Dshm.c64 #define shm_unlock(shp) \ argument
65 ipc_unlock(&(shp)->shm_perm)
70 static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp);
91 struct shmid_kernel *shp; in do_shm_rmid() local
92 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in do_shm_rmid()
94 if (shp->shm_nattch) { in do_shm_rmid()
95 shp->shm_perm.mode |= SHM_DEST; in do_shm_rmid()
97 shp->shm_perm.key = IPC_PRIVATE; in do_shm_rmid()
98 shm_unlock(shp); in do_shm_rmid()
100 shm_destroy(ns, shp); in do_shm_rmid()
[all …]
/linux-4.4.14/net/bridge/netfilter/
Debt_arpreply.c26 const unsigned char *shp; in ebt_arpreply_tg() local
39 shp = skb_header_pointer(skb, sizeof(_ah), ETH_ALEN, &_sha); in ebt_arpreply_tg()
40 if (shp == NULL) in ebt_arpreply_tg()
55 *diptr, shp, info->mac, shp); in ebt_arpreply_tg()
/linux-4.4.14/drivers/scsi/
Dgdth.c3876 static const char *gdth_info(struct Scsi_Host *shp) in gdth_info() argument
3878 gdth_ha_str *ha = shost_priv(shp); in gdth_info()
4692 struct Scsi_Host *shp; in gdth_isa_probe_one() local
4700 shp = scsi_host_alloc(&gdth_template, sizeof(gdth_ha_str)); in gdth_isa_probe_one()
4701 if (!shp) in gdth_isa_probe_one()
4703 ha = shost_priv(shp); in gdth_isa_probe_one()
4727 shp->unchecked_isa_dma = 1; in gdth_isa_probe_one()
4728 shp->irq = ha->irq; in gdth_isa_probe_one()
4729 shp->dma_channel = ha->drq; in gdth_isa_probe_one()
4732 ha->shost = shp; in gdth_isa_probe_one()
[all …]
Dscsi_debug.c4161 static const char * scsi_debug_info(struct Scsi_Host * shp) in scsi_debug_info() argument
/linux-4.4.14/include/linux/
Dsecurity.h336 int security_shm_alloc(struct shmid_kernel *shp);
337 void security_shm_free(struct shmid_kernel *shp);
338 int security_shm_associate(struct shmid_kernel *shp, int shmflg);
339 int security_shm_shmctl(struct shmid_kernel *shp, int cmd);
340 int security_shm_shmat(struct shmid_kernel *shp, char __user *shmaddr, int shmflg);
1007 static inline int security_shm_alloc(struct shmid_kernel *shp) in security_shm_alloc() argument
1012 static inline void security_shm_free(struct shmid_kernel *shp) in security_shm_free() argument
1015 static inline int security_shm_associate(struct shmid_kernel *shp, in security_shm_associate() argument
1021 static inline int security_shm_shmctl(struct shmid_kernel *shp, int cmd) in security_shm_shmctl() argument
1026 static inline int security_shm_shmat(struct shmid_kernel *shp, in security_shm_shmat() argument
Dlsm_hooks.h1493 int (*shm_alloc_security)(struct shmid_kernel *shp);
1494 void (*shm_free_security)(struct shmid_kernel *shp);
1495 int (*shm_associate)(struct shmid_kernel *shp, int shmflg);
1496 int (*shm_shmctl)(struct shmid_kernel *shp, int cmd);
1497 int (*shm_shmat)(struct shmid_kernel *shp, char __user *shmaddr,
/linux-4.4.14/security/
Dsecurity.c1064 int security_shm_alloc(struct shmid_kernel *shp) in security_shm_alloc() argument
1066 return call_int_hook(shm_alloc_security, 0, shp); in security_shm_alloc()
1069 void security_shm_free(struct shmid_kernel *shp) in security_shm_free() argument
1071 call_void_hook(shm_free_security, shp); in security_shm_free()
1074 int security_shm_associate(struct shmid_kernel *shp, int shmflg) in security_shm_associate() argument
1076 return call_int_hook(shm_associate, 0, shp, shmflg); in security_shm_associate()
1079 int security_shm_shmctl(struct shmid_kernel *shp, int cmd) in security_shm_shmctl() argument
1081 return call_int_hook(shm_shmctl, 0, shp, cmd); in security_shm_shmctl()
1084 int security_shm_shmat(struct shmid_kernel *shp, char __user *shmaddr, int shmflg) in security_shm_shmat() argument
1086 return call_int_hook(shm_shmat, 0, shp, shmaddr, shmflg); in security_shm_shmat()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/phy/
Dphy_cmn.c365 struct shared_phy *wlc_phy_shared_attach(struct shared_phy_params *shp) in wlc_phy_shared_attach() argument
373 sh->physhim = shp->physhim; in wlc_phy_shared_attach()
374 sh->unit = shp->unit; in wlc_phy_shared_attach()
375 sh->corerev = shp->corerev; in wlc_phy_shared_attach()
377 sh->vid = shp->vid; in wlc_phy_shared_attach()
378 sh->did = shp->did; in wlc_phy_shared_attach()
379 sh->chip = shp->chip; in wlc_phy_shared_attach()
380 sh->chiprev = shp->chiprev; in wlc_phy_shared_attach()
381 sh->chippkg = shp->chippkg; in wlc_phy_shared_attach()
382 sh->sromrev = shp->sromrev; in wlc_phy_shared_attach()
[all …]
Dphy_hal.h182 struct shared_phy *wlc_phy_shared_attach(struct shared_phy_params *shp);
/linux-4.4.14/security/smack/
Dsmack_lsm.c2895 static struct smack_known *smack_of_shm(struct shmid_kernel *shp) in smack_of_shm() argument
2897 return (struct smack_known *)shp->shm_perm.security; in smack_of_shm()
2906 static int smack_shm_alloc_security(struct shmid_kernel *shp) in smack_shm_alloc_security() argument
2908 struct kern_ipc_perm *isp = &shp->shm_perm; in smack_shm_alloc_security()
2921 static void smack_shm_free_security(struct shmid_kernel *shp) in smack_shm_free_security() argument
2923 struct kern_ipc_perm *isp = &shp->shm_perm; in smack_shm_free_security()
2935 static int smk_curacc_shm(struct shmid_kernel *shp, int access) in smk_curacc_shm() argument
2937 struct smack_known *ssp = smack_of_shm(shp); in smk_curacc_shm()
2943 ad.a.u.ipc_id = shp->shm_perm.id; in smk_curacc_shm()
2957 static int smack_shm_associate(struct shmid_kernel *shp, int shmflg) in smack_shm_associate() argument
[all …]
/linux-4.4.14/drivers/atm/
Deni.c1960 int error,rate,rsv,shp; in eni_change_qos() local
1966 rsv = shp = 0; in eni_change_qos()
1969 if ((flgs & ATM_MF_DEC_SHP) && rate && rate < tx->shaping) shp = 1; in eni_change_qos()
1970 if ((flgs & ATM_MF_INC_SHP) && (!rate || rate > tx->shaping)) shp = 1; in eni_change_qos()
1971 if (!rsv && !shp) return 0; in eni_change_qos()
1972 error = reserve_or_set_tx(vcc,&qos->txtp,rsv,shp); in eni_change_qos()
1974 if (shp && !(flgs & ATM_MF_IMMED)) return 0; in eni_change_qos()
/linux-4.4.14/tools/perf/util/
Dsymbol.h38 GElf_Shdr *shp, const char *name, size_t *idx);
Dsymbol-elf.c173 GElf_Shdr *shp, const char *name, size_t *idx) in elf_section_by_name() argument
185 gelf_getshdr(sec, shp); in elf_section_by_name()
186 str = elf_strptr(elf, ep->e_shstrndx, shp->sh_name); in elf_section_by_name()
/linux-4.4.14/security/selinux/
Dhooks.c5340 static int selinux_shm_alloc_security(struct shmid_kernel *shp) in selinux_shm_alloc_security() argument
5347 rc = ipc_alloc_security(current, &shp->shm_perm, SECCLASS_SHM); in selinux_shm_alloc_security()
5351 isec = shp->shm_perm.security; in selinux_shm_alloc_security()
5354 ad.u.ipc_id = shp->shm_perm.key; in selinux_shm_alloc_security()
5359 ipc_free_security(&shp->shm_perm); in selinux_shm_alloc_security()
5365 static void selinux_shm_free_security(struct shmid_kernel *shp) in selinux_shm_free_security() argument
5367 ipc_free_security(&shp->shm_perm); in selinux_shm_free_security()
5370 static int selinux_shm_associate(struct shmid_kernel *shp, int shmflg) in selinux_shm_associate() argument
5376 isec = shp->shm_perm.security; in selinux_shm_associate()
5379 ad.u.ipc_id = shp->shm_perm.key; in selinux_shm_associate()
[all …]
/linux-4.4.14/Documentation/scsi/
Dscsi_mid_low_api.txt699 * @shp: pointer to scsi host instance to unregister.
712 void scsi_unregister(struct Scsi_Host * shp)
917 * @shp: host to supply information about
941 const char * info(struct Scsi_Host * shp)
1078 * @shp: host to be released.
1088 * scsi_unregister(shp) prior to returning.
1094 int release(struct Scsi_Host * shp)
/linux-4.4.14/drivers/staging/unisys/visorhba/
Dvisorhba_main.c432 static const char *visorhba_get_info(struct Scsi_Host *shp) in visorhba_get_info() argument