Home
last modified time | relevance | path

Searched refs:shp (Results 1 - 24 of 24) sorted by relevance

/kernel/linux/linux-5.10/ipc/
H A Dshm.c67 * task_lock(shp->shm_creator)
97 #define shm_unlock(shp) \
98 ipc_unlock(&(shp)->shm_perm)
103 static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp);
119 * Called with shm_ids.rwsem (writer) and the shp structure locked.
124 struct shmid_kernel *shp; in do_shm_rmid() local
126 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in do_shm_rmid()
127 WARN_ON(ns != shp->ns); in do_shm_rmid()
129 if (shp->shm_nattch) { in do_shm_rmid()
130 shp in do_shm_rmid()
232 struct shmid_kernel *shp = container_of(ptr, struct shmid_kernel, shm_rcu_free() local
242 shm_clist_rm(struct shmid_kernel *shp) shm_clist_rm() argument
282 struct shmid_kernel *shp; __shm_open() local
322 shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp) shm_destroy() argument
352 shm_may_destroy(struct shmid_kernel *shp) shm_may_destroy() argument
369 struct shmid_kernel *shp; shm_close() local
399 struct shmid_kernel *shp = container_of(ipcp, struct shmid_kernel, shm_perm); shm_try_destroy_orphaned() local
429 struct shmid_kernel *shp; exit_shm() local
698 struct shmid_kernel *shp; newseg() local
812 struct shmid_kernel *shp; shm_more_checks() local
927 shm_add_rss_swap(struct shmid_kernel *shp, unsigned long *rss_add, unsigned long *swp_add) shm_add_rss_swap() argument
968 struct shmid_kernel *shp; shm_get_stat() local
990 struct shmid_kernel *shp; shmctl_down() local
1078 struct shmid_kernel *shp; shmctl_stat() local
1161 struct shmid_kernel *shp; shmctl_do_lock() local
1515 struct shmid_kernel *shp; do_shmat() local
1839 struct shmid_kernel *shp; sysvipc_shm_proc_show() local
[all...]
/kernel/linux/linux-6.6/ipc/
H A Dshm.c67 * task_lock(shp->shm_creator)
97 #define shm_unlock(shp) \
98 ipc_unlock(&(shp)->shm_perm)
103 static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp);
119 * Called with shm_ids.rwsem (writer) and the shp structure locked.
124 struct shmid_kernel *shp; in do_shm_rmid() local
126 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in do_shm_rmid()
127 WARN_ON(ns != shp->ns); in do_shm_rmid()
129 if (shp->shm_nattch) { in do_shm_rmid()
130 shp in do_shm_rmid()
232 struct shmid_kernel *shp = container_of(ptr, struct shmid_kernel, shm_rcu_free() local
242 shm_clist_rm(struct shmid_kernel *shp) shm_clist_rm() argument
280 struct shmid_kernel *shp; __shm_open() local
328 shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp) shm_destroy() argument
355 shm_may_destroy(struct shmid_kernel *shp) shm_may_destroy() argument
370 struct shmid_kernel *shp; __shm_close() local
412 struct shmid_kernel *shp = container_of(ipcp, struct shmid_kernel, shm_perm); shm_try_destroy_orphaned() local
442 struct shmid_kernel *shp; exit_shm() local
711 struct shmid_kernel *shp; newseg() local
822 struct shmid_kernel *shp; shm_more_checks() local
937 shm_add_rss_swap(struct shmid_kernel *shp, unsigned long *rss_add, unsigned long *swp_add) shm_add_rss_swap() argument
978 struct shmid_kernel *shp; shm_get_stat() local
1000 struct shmid_kernel *shp; shmctl_down() local
1088 struct shmid_kernel *shp; shmctl_stat() local
1171 struct shmid_kernel *shp; shmctl_do_lock() local
1525 struct shmid_kernel *shp; do_shmat() local
1848 struct shmid_kernel *shp; sysvipc_shm_proc_show() local
[all...]
/kernel/linux/linux-5.10/net/bridge/netfilter/
H A Debt_arpreply.c27 const unsigned char *shp; in ebt_arpreply_tg() local
40 shp = skb_header_pointer(skb, sizeof(_ah), ETH_ALEN, &_sha); in ebt_arpreply_tg()
41 if (shp == NULL) in ebt_arpreply_tg()
57 *diptr, shp, info->mac, shp); in ebt_arpreply_tg()
/kernel/linux/linux-6.6/net/bridge/netfilter/
H A Debt_arpreply.c27 const unsigned char *shp; in ebt_arpreply_tg() local
40 shp = skb_header_pointer(skb, sizeof(_ah), ETH_ALEN, &_sha); in ebt_arpreply_tg()
41 if (shp == NULL) in ebt_arpreply_tg()
57 *diptr, shp, info->mac, shp); in ebt_arpreply_tg()
/kernel/linux/linux-5.10/security/
H A Dsecurity.c1935 int security_shm_alloc(struct kern_ipc_perm *shp) in security_shm_alloc() argument
1937 int rc = lsm_ipc_alloc(shp); in security_shm_alloc()
1941 rc = call_int_hook(shm_alloc_security, 0, shp); in security_shm_alloc()
1943 security_shm_free(shp); in security_shm_alloc()
1947 void security_shm_free(struct kern_ipc_perm *shp) in security_shm_free() argument
1949 call_void_hook(shm_free_security, shp); in security_shm_free()
1950 kfree(shp->security); in security_shm_free()
1951 shp->security = NULL; in security_shm_free()
1954 int security_shm_associate(struct kern_ipc_perm *shp, int shmflg) in security_shm_associate() argument
1956 return call_int_hook(shm_associate, 0, shp, shmfl in security_shm_associate()
1959 security_shm_shmctl(struct kern_ipc_perm *shp, int cmd) security_shm_shmctl() argument
1964 security_shm_shmat(struct kern_ipc_perm *shp, char __user *shmaddr, int shmflg) security_shm_shmat() argument
[all...]
/kernel/linux/linux-6.6/security/
H A Dsecurity.c3641 * @shp: sysv ipc permission structure
3643 * Allocate and attach a security structure to the @shp security field. The
3648 int security_shm_alloc(struct kern_ipc_perm *shp) in security_shm_alloc() argument
3650 int rc = lsm_ipc_alloc(shp); in security_shm_alloc()
3654 rc = call_int_hook(shm_alloc_security, 0, shp); in security_shm_alloc()
3656 security_shm_free(shp); in security_shm_alloc()
3662 * @shp: sysv ipc permission structure
3666 void security_shm_free(struct kern_ipc_perm *shp) in security_shm_free() argument
3668 call_void_hook(shm_free_security, shp); in security_shm_free()
3669 kfree(shp in security_shm_free()
3685 security_shm_associate(struct kern_ipc_perm *shp, int shmflg) security_shm_associate() argument
3700 security_shm_shmctl(struct kern_ipc_perm *shp, int cmd) security_shm_shmctl() argument
3717 security_shm_shmat(struct kern_ipc_perm *shp, char __user *shmaddr, int shmflg) security_shm_shmat() argument
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dsecurity.h438 int security_shm_alloc(struct kern_ipc_perm *shp);
439 void security_shm_free(struct kern_ipc_perm *shp);
440 int security_shm_associate(struct kern_ipc_perm *shp, int shmflg);
441 int security_shm_shmctl(struct kern_ipc_perm *shp, int cmd);
442 int security_shm_shmat(struct kern_ipc_perm *shp, char __user *shmaddr, int shmflg);
1212 static inline int security_shm_alloc(struct kern_ipc_perm *shp) in security_shm_alloc() argument
1217 static inline void security_shm_free(struct kern_ipc_perm *shp) in security_shm_free() argument
1220 static inline int security_shm_associate(struct kern_ipc_perm *shp, in security_shm_associate() argument
1226 static inline int security_shm_shmctl(struct kern_ipc_perm *shp, int cmd) in security_shm_shmctl() argument
1231 static inline int security_shm_shmat(struct kern_ipc_perm *shp, in security_shm_shmat() argument
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dsecurity.h463 int security_shm_alloc(struct kern_ipc_perm *shp);
464 void security_shm_free(struct kern_ipc_perm *shp);
465 int security_shm_associate(struct kern_ipc_perm *shp, int shmflg);
466 int security_shm_shmctl(struct kern_ipc_perm *shp, int cmd);
467 int security_shm_shmat(struct kern_ipc_perm *shp, char __user *shmaddr, int shmflg);
1295 static inline int security_shm_alloc(struct kern_ipc_perm *shp) in security_shm_alloc() argument
1300 static inline void security_shm_free(struct kern_ipc_perm *shp) in security_shm_free() argument
1303 static inline int security_shm_associate(struct kern_ipc_perm *shp, in security_shm_associate() argument
1309 static inline int security_shm_shmctl(struct kern_ipc_perm *shp, int cmd) in security_shm_shmctl() argument
1314 static inline int security_shm_shmat(struct kern_ipc_perm *shp, in security_shm_shmat() argument
[all...]
/kernel/linux/linux-5.10/drivers/scsi/
H A Dgdth.c3189 static const char *gdth_info(struct Scsi_Host *shp) in gdth_info() argument
3191 gdth_ha_str *ha = shost_priv(shp); in gdth_info()
4015 struct Scsi_Host *shp; in gdth_pci_probe_one() local
4023 shp = scsi_host_alloc(&gdth_template, sizeof(gdth_ha_str)); in gdth_pci_probe_one()
4024 if (!shp) in gdth_pci_probe_one()
4026 ha = shost_priv(shp); in gdth_pci_probe_one()
4045 shp->unchecked_isa_dma = 0; in gdth_pci_probe_one()
4046 shp->irq = ha->irq; in gdth_pci_probe_one()
4047 shp->dma_channel = 0xff; in gdth_pci_probe_one()
4050 ha->shost = shp; in gdth_pci_probe_one()
4144 struct Scsi_Host *shp = ha->shost; gdth_remove_one() local
[all...]
H A Dscsi_debug.c5746 static const char *scsi_debug_info(struct Scsi_Host *shp) in scsi_debug_info() argument
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
H A Dphy_cmn.c354 struct shared_phy *wlc_phy_shared_attach(struct shared_phy_params *shp) in wlc_phy_shared_attach() argument
362 sh->physhim = shp->physhim; in wlc_phy_shared_attach()
363 sh->unit = shp->unit; in wlc_phy_shared_attach()
364 sh->corerev = shp->corerev; in wlc_phy_shared_attach()
366 sh->vid = shp->vid; in wlc_phy_shared_attach()
367 sh->did = shp->did; in wlc_phy_shared_attach()
368 sh->chip = shp->chip; in wlc_phy_shared_attach()
369 sh->chiprev = shp->chiprev; in wlc_phy_shared_attach()
370 sh->chippkg = shp->chippkg; in wlc_phy_shared_attach()
371 sh->sromrev = shp in wlc_phy_shared_attach()
[all...]
H A Dphy_hal.h171 struct shared_phy *wlc_phy_shared_attach(struct shared_phy_params *shp);
/kernel/linux/linux-6.6/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
H A Dphy_cmn.c354 struct shared_phy *wlc_phy_shared_attach(struct shared_phy_params *shp) in wlc_phy_shared_attach() argument
362 sh->physhim = shp->physhim; in wlc_phy_shared_attach()
363 sh->unit = shp->unit; in wlc_phy_shared_attach()
364 sh->corerev = shp->corerev; in wlc_phy_shared_attach()
366 sh->vid = shp->vid; in wlc_phy_shared_attach()
367 sh->did = shp->did; in wlc_phy_shared_attach()
368 sh->chip = shp->chip; in wlc_phy_shared_attach()
369 sh->chiprev = shp->chiprev; in wlc_phy_shared_attach()
370 sh->chippkg = shp->chippkg; in wlc_phy_shared_attach()
371 sh->sromrev = shp in wlc_phy_shared_attach()
[all...]
H A Dphy_hal.h166 struct shared_phy *wlc_phy_shared_attach(struct shared_phy_params *shp);
/kernel/linux/linux-5.10/drivers/atm/
H A Deni.c1370 DPRINTK("rsv %d shp %d\n",tx->reserved,tx->shaping); in reserve_or_set_tx()
1961 int error,rate,rsv,shp; in eni_change_qos() local
1967 rsv = shp = 0; in eni_change_qos()
1970 if ((flgs & ATM_MF_DEC_SHP) && rate && rate < tx->shaping) shp = 1; in eni_change_qos()
1971 if ((flgs & ATM_MF_INC_SHP) && (!rate || rate > tx->shaping)) shp = 1; in eni_change_qos()
1972 if (!rsv && !shp) return 0; in eni_change_qos()
1973 error = reserve_or_set_tx(vcc,&qos->txtp,rsv,shp); in eni_change_qos()
1975 if (shp && !(flgs & ATM_MF_IMMED)) return 0; in eni_change_qos()
2148 "(%6ld bytes), rsv %d cps, shp %d cps%s\n",i, in eni_proc_read()
/kernel/linux/linux-6.6/drivers/atm/
H A Deni.c1370 DPRINTK("rsv %d shp %d\n",tx->reserved,tx->shaping); in reserve_or_set_tx()
1961 int error,rate,rsv,shp; in eni_change_qos() local
1967 rsv = shp = 0; in eni_change_qos()
1970 if ((flgs & ATM_MF_DEC_SHP) && rate && rate < tx->shaping) shp = 1; in eni_change_qos()
1971 if ((flgs & ATM_MF_INC_SHP) && (!rate || rate > tx->shaping)) shp = 1; in eni_change_qos()
1972 if (!rsv && !shp) return 0; in eni_change_qos()
1973 error = reserve_or_set_tx(vcc,&qos->txtp,rsv,shp); in eni_change_qos()
1975 if (shp && !(flgs & ATM_MF_IMMED)) return 0; in eni_change_qos()
2148 "(%6ld bytes), rsv %d cps, shp %d cps%s\n",i, in eni_proc_read()
/kernel/linux/linux-5.10/tools/perf/util/
H A Dsymbol.h40 GElf_Shdr *shp, const char *name, size_t *idx);
H A Dsymbol-elf.c210 GElf_Shdr *shp, const char *name, size_t *idx) in elf_section_by_name()
222 gelf_getshdr(sec, shp); in elf_section_by_name()
223 str = elf_strptr(elf, ep->e_shstrndx, shp->sh_name); in elf_section_by_name()
209 elf_section_by_name(Elf *elf, GElf_Ehdr *ep, GElf_Shdr *shp, const char *name, size_t *idx) elf_section_by_name() argument
/kernel/linux/linux-6.6/tools/perf/util/
H A Dsymbol.h41 GElf_Shdr *shp, const char *name, size_t *idx);
H A Dsymbol-elf.c200 GElf_Shdr *shp, const char *name, size_t *idx) in elf_section_by_name()
212 gelf_getshdr(sec, shp); in elf_section_by_name()
213 str = elf_strptr(elf, ep->e_shstrndx, shp->sh_name); in elf_section_by_name()
199 elf_section_by_name(Elf *elf, GElf_Ehdr *ep, GElf_Shdr *shp, const char *name, size_t *idx) elf_section_by_name() argument
/kernel/linux/linux-5.10/security/selinux/
H A Dhooks.c6130 static int selinux_shm_alloc_security(struct kern_ipc_perm *shp) in selinux_shm_alloc_security() argument
6137 isec = selinux_ipc(shp); in selinux_shm_alloc_security()
6141 ad.u.ipc_id = shp->key; in selinux_shm_alloc_security()
6149 static int selinux_shm_associate(struct kern_ipc_perm *shp, int shmflg) in selinux_shm_associate() argument
6155 isec = selinux_ipc(shp); in selinux_shm_associate()
6158 ad.u.ipc_id = shp->key; in selinux_shm_associate()
6165 /* Note, at this point, shp is locked down */
6166 static int selinux_shm_shmctl(struct kern_ipc_perm *shp, int cmd) in selinux_shm_shmctl() argument
6197 err = ipc_has_perm(shp, perms); in selinux_shm_shmctl()
6201 static int selinux_shm_shmat(struct kern_ipc_perm *shp, in selinux_shm_shmat() argument
[all...]
/kernel/linux/linux-6.6/security/selinux/
H A Dhooks.c6122 static int selinux_shm_alloc_security(struct kern_ipc_perm *shp) in selinux_shm_alloc_security() argument
6128 isec = selinux_ipc(shp); in selinux_shm_alloc_security()
6132 ad.u.ipc_id = shp->key; in selinux_shm_alloc_security()
6138 static int selinux_shm_associate(struct kern_ipc_perm *shp, int shmflg) in selinux_shm_associate() argument
6144 isec = selinux_ipc(shp); in selinux_shm_associate()
6147 ad.u.ipc_id = shp->key; in selinux_shm_associate()
6153 /* Note, at this point, shp is locked down */
6154 static int selinux_shm_shmctl(struct kern_ipc_perm *shp, int cmd) in selinux_shm_shmctl() argument
6183 return ipc_has_perm(shp, perms); in selinux_shm_shmctl()
6186 static int selinux_shm_shmat(struct kern_ipc_perm *shp, in selinux_shm_shmat() argument
[all...]
/kernel/linux/linux-5.10/drivers/staging/unisys/visorhba/
H A Dvisorhba_main.c459 * @shp: Scsi host that is requesting information
463 static const char *visorhba_get_info(struct Scsi_Host *shp) in visorhba_get_info() argument
/kernel/linux/linux-6.6/drivers/scsi/
H A Dscsi_debug.c5851 static const char *scsi_debug_info(struct Scsi_Host *shp) in scsi_debug_info() argument

Completed in 79 milliseconds